/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 81 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1010.8-0158_daily_bin1203
RA = 152.704, Dec = -1.9817
tmin = 551145601, tmax = 551404801
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='706784', job_status='RUN', time_executed='2021-09-01 12:32:39.212946', time_epoch_executed='1630524759.21' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='1203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706784

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706784/ft1_4FGL_J1010.8-0158_daily_bin1203.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706784/ft2_4FGL_J1010.8-0158_daily_bin1203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706784/ft1_4FGL_J1010.8-0158_daily_bin1203.fits outfile=/scratch/kocevski/706784/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin1203.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=551145601.0 tmax=551404801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.59
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706784/ft1_filtered_4FGL_J1010.8-0158_daily_bin1203.fits" evtable="EVENTS" scfile=/scratch/kocevski/706784/ft2_4FGL_J1010.8-0158_daily_bin1203.fits sctable="SC_DATA" outfile=/scratch/kocevski/706784/ltcube_551145601_551404801_4FGL_J1010.8-0158_daily_bin1203.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/706784/ft2_4FGL_J1010.8-0158_daily_bin1203.fits
.....................!
real 11.71
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706784/ft1_filtered_4FGL_J1010.8-0158_daily_bin1203.fits evtable="EVENTS" scfile=/scratch/kocevski/706784/ft2_4FGL_J1010.8-0158_daily_bin1203.fits sctable="SC_DATA" expcube=/scratch/kocevski/706784/ltcube_551145601_551404801_4FGL_J1010.8-0158_daily_bin1203.fits outfile=/scratch/kocevski/706784/expmap_551145601_551404801_4FGL_J1010.8-0158_daily_bin1203.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/706784/ltcube_551145601_551404801_4FGL_J1010.8-0158_daily_bin1203.fits
.....................!
real 190.32
user 185.48
sys 4.33

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/706784/ft1_filtered_4FGL_J1010.8-0158_daily_bin1203.fits scfile=/scratch/kocevski/706784/ft2_4FGL_J1010.8-0158_daily_bin1203.fits outfile=/scratch/kocevski/706784/cmap_551145601_551404801_4FGL_J1010.8-0158_daily_bin1203.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.52
user 0.38
sys 0.12

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/706784/ft1_filtered_4FGL_J1010.8-0158_daily_bin1203.fits evtable="EVENTS" scfile=/scratch/kocevski/706784/ft2_4FGL_J1010.8-0158_daily_bin1203.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706784/Model_4FGL_J1010.8-0158_daily_bin1203.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/706784/ft1_filtered_4FGL_J1010.8-0158_daily_bin1203.fits......................!
real 28.74
user 27.46
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21444       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6679       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.292       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20820       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .78071       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2704       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=   1910.784     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2239 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    488.99       -.20106E-03** at limit **
   2  Prefactor     .21198        68.099       -.32294E-05    .11212E-03
   3  norm          .10000E-03    136.80        .11829E-03** at limit **
   4  norm          .10000E-03    .55301       -.10362E-07** at limit **
   5  norm          .10000E-03    5.8516       -.45230E-07** at limit **
   6  Prefactor     3.6681        28.192       -.20724E-05    .16698E-04
   7  Prefactor     .10000E-03    59.839        .11475E-04** at limit **
   8  Prefactor     .10000E-03    56.746        .29739E-04** at limit **
   9  norm          .10000E-03    15.441        .13291E-06** at limit **
  10  Prefactor     .10000E-03    18.266       -.13572E-06** at limit **
  11  Prefactor     .10000E-03    45.363       -.13944E-04** at limit **
  12  Prefactor     .10000E-03    89.507       -.94884E-04** at limit **
  13  Prefactor     18.286        31.002        .25212E-05    .19693E-03
  14  norm          2.9288        3.1576        .10741E-07   -.18109E-03
  15  Prefactor     .10000E-03    6.1719       -.39799E-07** at limit **
  16  Prefactor     .20440        4.2783        .23498E-05   -.13509E-02
  17  Prefactor     .10000E-03    10.153       -.21782E-06** at limit **
  18  Normalizat    .78091        .39453       -.18636E-05   -.12611E-03
  19  Prefactor     1.2703        .29673       -.29627E-07   -.18229E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.211978
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.66806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2862
  norm       = 2.92878
  Prefactor  = 0.0001
  Prefactor  = 0.204398
  Prefactor  = 0.0001
  Normalizat = 0.780906
  Prefactor  = 1.27026
 **********
 **   18 **HESSE 
 **********

 FCN=   1910.784     FROM HESSE     STATUS=OK           268 CALLS     2507 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    490.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .21198        86.773        .10267       -1.5616    
   3  norm          .10000E-03    137.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .56744        .63393E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8536        .10329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6681        28.266        .21090E-03   -1.5325    
   7  Prefactor     .10000E-03    59.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    56.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.445        .16753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    89.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.286        30.990        .93647E-04   -1.4852    
  14  norm          2.9288        3.1494        .74980E-04   -1.5366    
  15  Prefactor     .10000E-03    6.1798        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .20440        30.040        .16164E-02   -1.5618    
  17  Prefactor     .10000E-03    10.181        .13598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .78091        .47118        .33040E-03   -1.0078    
  19  Prefactor     1.2703        .35702        .21235E-03   -.84196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05428e-08
Minuit parameter uncertainties:
  1  0.000543645
  2  8.58817
  3  0.00137946
  4  1.82719e-06
  5  4.36591e-06
  6  20.3777
  7  2.8184e-06
  8  6.02717e-06
  9  4.69962e-05
  10  3.12147e-05
  11  2.74012e-05
  12  3.53462e-05
  13  31.0173
  14  3.14958
  15  1.61959e-06
  16  4.95717
  17  2.24627e-05
  18  0.473673
  19  0.357709
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  2.818e-06  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.270e+00  3.577e-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:  7.809e-01  4.737e-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: 2.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706784/likelihoodResults_551145601_551404801_4FGL_J1010.8-0158_daily_bin1203.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) = 1910.78434552
delta logL = -7.89001480825e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1910.78426675
delta logL = -1.24126017909e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5916       1.0000          .0000       10.000    
     3 'Normalizat'    .78089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2703       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=   1910.784     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      284 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    62.858        .18142E-02** at limit **
   2  Index         2.5390        6.2692        .50000        .94835E-05
   3  Normalizat    .78091        .42651        .33040E-03   -.28388E-06
   4  Prefactor     1.2703        .34451        .21235E-03   -.16864E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.53901
  Normalizat = 0.780908
  Prefactor  = 1.27026
 **********
 **   18 **HESSE 
 **********

 FCN=   1910.784     FROM HESSE     STATUS=OK            29 CALLS      313 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    58.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5390        6.2658        .50000       -.51461    
   3  Normalizat    .78091        .42690        .13216E-04   -1.0078    
   4  Prefactor     1.2703        .34484        .84941E-05   -.84196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.708e-10
Minuit parameter uncertainties:
  1  0.0011324
  2  4.35934
  3  0.428748
  4  0.345455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706784': 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) = 1910.78426663
delta logL = -7.84029907663e-09

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.132e-03  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.539e+00  4.359e+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:  1.270e+00  3.455e-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:  7.809e-01  4.287e-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/706784/cmap_HighResolution_551145601_551404801_4FGL_J1010.8-0158_daily_bin1203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', job_status='DONE', photon_flux_upper_limit='2.35e-07', time_completed='2021-09-01 12:39:07.760060', job_id='706784', GAL2='1.27', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630525147.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='-7.84e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1203' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:39:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 706784: <4FGL_J1010.8-0158_daily_bin1203> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin1203> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 12:31:03 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:31:04 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:31:04 2021
Terminated at Wed Sep  1 12:39:08 2021
Results reported at Wed Sep  1 12:39:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin1203 152.704 -1.9817 551145601 551404801 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 :                                   387.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   484 sec.
    Turnaround time :                            485 sec.

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

