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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin787
RA = 152.704, Dec = -1.9817
tmin = 443318401, tmax = 443577601
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='705376', job_status='RUN', time_executed='2021-09-01 12:26:04.909927', time_epoch_executed='1630524364.91' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705376/ft1_4FGL_J1010.8-0158_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705376/ft2_4FGL_J1010.8-0158_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705376/ft1_4FGL_J1010.8-0158_daily_bin787.fits outfile=/scratch/kocevski/705376/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin787.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=443318401.0 tmax=443577601.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.61
user 4.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705376/ft1_filtered_4FGL_J1010.8-0158_daily_bin787.fits" evtable="EVENTS" scfile=/scratch/kocevski/705376/ft2_4FGL_J1010.8-0158_daily_bin787.fits sctable="SC_DATA" outfile=/scratch/kocevski/705376/ltcube_443318401_443577601_4FGL_J1010.8-0158_daily_bin787.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/705376/ft2_4FGL_J1010.8-0158_daily_bin787.fits
.....................!
real 13.00
user 12.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705376/ft1_filtered_4FGL_J1010.8-0158_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/705376/ft2_4FGL_J1010.8-0158_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/705376/ltcube_443318401_443577601_4FGL_J1010.8-0158_daily_bin787.fits outfile=/scratch/kocevski/705376/expmap_443318401_443577601_4FGL_J1010.8-0158_daily_bin787.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/705376/ltcube_443318401_443577601_4FGL_J1010.8-0158_daily_bin787.fits
.....................!
real 193.36
user 187.39
sys 4.28

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/705376/ft1_filtered_4FGL_J1010.8-0158_daily_bin787.fits scfile=/scratch/kocevski/705376/ft2_4FGL_J1010.8-0158_daily_bin787.fits outfile=/scratch/kocevski/705376/cmap_443318401_443577601_4FGL_J1010.8-0158_daily_bin787.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705376/ft1_filtered_4FGL_J1010.8-0158_daily_bin787.fits scfile=/scratch/kocevski/705376/ft2_4FGL_J1010.8-0158_daily_bin787.fits outfile=/scratch/kocevski/705376/cmap_HighResolution_443318401_443577601_4FGL_J1010.8-0158_daily_bin787.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705376/ft1_filtered_4FGL_J1010.8-0158_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/705376/ft2_4FGL_J1010.8-0158_daily_bin787.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705376/Model_4FGL_J1010.8-0158_daily_bin787.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/705376/ft1_filtered_4FGL_J1010.8-0158_daily_bin787.fits.....................!
real 49.05
user 47.56
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.183       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.685       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5156       1.0000         .10000E-03   10000.    
     4 'norm      '    .61450       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0223       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19066E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    19.904       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4921       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .72963       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1662       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=   4612.552     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2264 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.272        46.568       -.10419E-04   -.41307E-04
   2  Prefactor     18.678        21.364       -.11520E-06    .73811E-04
   3  norm          2.5171        5.5018       -.31896E-05   -.39831E-04
   4  norm          .61465        .64153       -.47066E-06   -.81451E-03
   5  norm          .10000E-03    2.1073        .15269E-05** at limit **
   6  Prefactor     2.0194        6.8761       -.48572E-05   -.17163E-04
   7  Prefactor     30.401        44.959        .78393E-06    .48343E-05
   8  Prefactor     .10000E-03    161.83        .86420E-06** at limit **
   9  norm          19.910        15.955       -.66836E-08    .48692E-04
  10  Prefactor     .10000E-03    9.0128        .68339E-06** at limit **
  11  Prefactor     .10000E-03    29.211       -.67676E-06** at limit **
  12  Prefactor     .10000E-03    19.311        .32883E-06** at limit **
  13  Prefactor     .10000E-03    6.1079        .22073E-06** at limit **
  14  norm          3.4927        1.8175       -.18135E-06    .24133E-03
  15  Prefactor     .10000E-03    3.2781        .42295E-06** at limit **
  16  Prefactor     .10139E-03    9.4106       -.86205E-05** at limit **
  17  Prefactor     .10042E-03    50.283        .19345E-04** at limit **
  18  Normalizat    .72932        .22857        .27265E-05    .19195E-03
  19  Prefactor     1.1664        .17457       -.85630E-06    .26088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2715
  Prefactor  = 18.6779
  norm       = 2.51711
  norm       = 0.614652
  norm       = 0.0001
  Prefactor  = 2.01938
  Prefactor  = 30.4015
  Prefactor  = 0.0001
  norm       = 19.9104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49265
  Prefactor  = 0.0001
  Prefactor  = 0.000101395
  Prefactor  = 0.000100416
  Normalizat = 0.729325
  Prefactor  = 1.16636
 **********
 **   18 **HESSE 
 **********

 FCN=   4612.552     FROM HESSE     STATUS=OK           272 CALLS     2536 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.272        46.800        .10279E-03   -1.4926    
   2  Prefactor     18.678        21.310        .92657E-04   -1.4843    
   3  norm          2.5171        5.5093        .22577E-03   -1.5391    
   4  norm          .61465        .61342        .52612E-03   -1.5551    
   5  norm          .10000E-03    2.1992        .19257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0194        6.8387        .29099E-03   -1.5424    
   7  Prefactor     30.401        44.956        .72685E-04   -1.4605    
   8  Prefactor     .10000E-03    164.57        .20271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.910        15.921        .89777E-04   -1.4815    
  10  Prefactor     .10000E-03    9.1519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1129        .16393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4927        1.8148        .62801E-04   -1.5334    
  15  Prefactor     .10000E-03    3.3100        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10139E-03    41.799        .16673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10042E-03    59.603        .35473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .72932        .25667        .30608E-03   -1.0275    
  19  Prefactor     1.1664        .20101        .19869E-03   -.87373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7146e-08
Minuit parameter uncertainties:
  1  46.9127
  2  21.3189
  3  5.51037
  4  0.613423
  5  6.73269e-06
  6  6.84138
  7  45.0066
  8  0.000197929
  9  15.9239
  10  3.64425e-05
  11  1.72507e-05
  12  1.5888e-05
  13  4.68038e-06
  14  1.81483
  15  4.41806e-06
  16  0.0152819
  17  0.00996638
  18  0.25709
  19  0.20114
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  3.040e+01  4.501e+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:  1.166e+00  2.011e-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.293e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/705376/likelihoodResults_443318401_443577601_4FGL_J1010.8-0158_daily_bin787.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) = 4612.42360338
delta logL = 0.128002448099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4612.41938586
delta logL = 0.132219969423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.268       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2558       1.0000          .0000       10.000    
     3 'Normalizat'    .70213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1810       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=   4612.419     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      270 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.246        51.057        .96382E-04   -.41133E-03
   2  Index         3.2571        1.9327        .84183E-02   -.14749E-03
   3  Normalizat    .70247        .25810        .31141E-03    .27756E-03
   4  Prefactor     1.1806        .20384        .19762E-03    .44552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2457
  Index      = 3.25709
  Normalizat = 0.702474
  Prefactor  = 1.18061
 **********
 **   18 **HESSE 
 **********

 FCN=   4612.419     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.246        38.203        .19276E-04   -1.4877    
   2  Index         3.2571        1.4610        .33673E-03   -.35606    
   3  Normalizat    .70247        .25713        .12456E-04   -1.0380    
   4  Prefactor     1.1806        .20303        .39523E-04   -.86930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17024e-09
Minuit parameter uncertainties:
  1  38.257
  2  1.48578
  3  0.257567
  4  0.203159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705376': 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) = 4612.41938323
delta logL = 0.132222604127

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.725e+01  3.826e+01  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  3.257e+00  1.486e+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.181e+00  2.032e-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.025e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/705376/cmap_HighResolution_443318401_443577601_4FGL_J1010.8-0158_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-01 12:34:43.973494', job_id='705376', GAL2='1.18', fit_tolerance='1e-08', EG2='0.70', EG='0.73', time_epoch_completed='1630524883.97', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.32e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='787' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:34:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 705376: <4FGL_J1010.8-0158_daily_bin787> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin787> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 12:25:49 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:25:52 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:25:52 2021
Terminated at Wed Sep  1 12:34:44 2021
Results reported at Wed Sep  1 12:34:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin787 152.704 -1.9817 443318401 443577601 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 :                                   516.51 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             344.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   532 sec.
    Turnaround time :                            535 sec.

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

