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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin1090
RA = 152.704, Dec = -1.9817
tmin = 521856001, tmax = 522115201
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='706649', job_status='RUN', time_executed='2021-09-01 12:32:19.971785', time_epoch_executed='1630524739.97' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706649

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706649/ft1_4FGL_J1010.8-0158_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706649/ft2_4FGL_J1010.8-0158_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706649/ft1_4FGL_J1010.8-0158_daily_bin1090.fits outfile=/scratch/kocevski/706649/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin1090.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=521856001.0 tmax=522115201.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.01
user 2.76
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706649/ft2_4FGL_J1010.8-0158_daily_bin1090.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/706649/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/706649/ft1_filtered_4FGL_J1010.8-0158_daily_bin1090.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.44
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706649/ft1_filtered_4FGL_J1010.8-0158_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/706649/ft2_4FGL_J1010.8-0158_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/706649/ltcube_521856001_522115201_4FGL_J1010.8-0158_daily_bin1090.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/706649/ft2_4FGL_J1010.8-0158_daily_bin1090.fits
.....................!
real 10.26
user 9.95
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706649/ft1_filtered_4FGL_J1010.8-0158_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/706649/ft2_4FGL_J1010.8-0158_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/706649/ltcube_521856001_522115201_4FGL_J1010.8-0158_daily_bin1090.fits outfile=/scratch/kocevski/706649/expmap_521856001_522115201_4FGL_J1010.8-0158_daily_bin1090.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/706649/ltcube_521856001_522115201_4FGL_J1010.8-0158_daily_bin1090.fits
.....................!
real 149.42
user 145.03
sys 4.16

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1010.8-0158 @ 152.704 -1.9817

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/706649/ft1_filtered_4FGL_J1010.8-0158_daily_bin1090.fits scfile=/scratch/kocevski/706649/ft2_4FGL_J1010.8-0158_daily_bin1090.fits outfile=/scratch/kocevski/706649/cmap_521856001_522115201_4FGL_J1010.8-0158_daily_bin1090.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706649/ft1_filtered_4FGL_J1010.8-0158_daily_bin1090.fits scfile=/scratch/kocevski/706649/ft2_4FGL_J1010.8-0158_daily_bin1090.fits outfile=/scratch/kocevski/706649/cmap_HighResolution_521856001_522115201_4FGL_J1010.8-0158_daily_bin1090.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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/706649/ft1_filtered_4FGL_J1010.8-0158_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/706649/ft2_4FGL_J1010.8-0158_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706649/Model_4FGL_J1010.8-0158_daily_bin1090.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/706649/ft1_filtered_4FGL_J1010.8-0158_daily_bin1090.fits.....................!
real 49.32
user 48.16
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.185       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .69305E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9117       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1911       1.0000         .10000E-03   10000.    
     9 'norm      '    .10496E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9092       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.026       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .75569E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.368       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0671       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.885       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1188       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3575       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89043       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=   5927.599     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1916 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5478        124.41       -.26041E-07   -.16072E-05
   2  Prefactor     36.191        20.332        .12597E-05   -.43340E-04
   3  norm          .10000E-03    1.6434        .73486E-07** at limit **
   4  norm          .10000E-03    .32133        .65094E-07** at limit **
   5  norm          2.9117        2.0764        .63662E-07   -.42014E-04
   6  Prefactor     10.135        13.980        .18767E-06   -.14009E-04
   7  Prefactor     15.634        61.983       -.99708E-05   -.32315E-04
   8  Prefactor     8.1589        117.95        .12592E-04   -.91087E-06
   9  norm          .10000E-03    34.006       -.21489E-05** at limit **
  10  Prefactor     1.8918        27.524        .14472E-04   -.54762E-04
  11  Prefactor     68.949        71.583        .73555E-05   -.25300E-04
  12  Prefactor     .10003E-03    328.40        .47060E-06** at limit **
  13  Prefactor     38.374        28.557       -.36998E-05   -.82264E-04
  14  norm          3.0669        1.9464       -.42345E-07   -.15668E-03
  15  Prefactor     15.884        10.324        .12664E-05   -.58967E-04
  16  Prefactor     .10000E-03    1.2753       -.68917E-07** at limit **
  17  Prefactor     7.1179        10.989        .25429E-06   -.15317E-04
  18  Normalizat    1.3575        .23338        .79653E-06   -.36329E-04
  19  Prefactor     .89051        .16090       -.26635E-05   -.14631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54779
  Prefactor  = 36.1907
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.91173
  Prefactor  = 10.1353
  Prefactor  = 15.6343
  Prefactor  = 8.15894
  norm       = 0.000100002
  Prefactor  = 1.89179
  Prefactor  = 68.9486
  Prefactor  = 0.000100025
  Prefactor  = 38.3741
  norm       = 3.06688
  Prefactor  = 15.8845
  Prefactor  = 0.0001
  Prefactor  = 7.11786
  Normalizat = 1.35748
  Prefactor  = 0.89051
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.599     FROM HESSE     STATUS=OK           278 CALLS     2194 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5478        124.74        .25825E-03   -1.5389    
   2  Prefactor     36.191        20.315        .66623E-04   -1.4504    
   3  norm          .10000E-03    1.6563        .96376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.9532        .82989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9117        2.0775        .90666E-04   -1.5367    
   6  Prefactor     10.135        13.921        .12583E-03   -1.5071    
   7  Prefactor     15.634        61.764        .10138E-03   -1.4917    
   8  Prefactor     8.1589        117.11        .14008E-03   -1.5137    
   9  norm          .10000E-03    34.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8918        28.512        .15044E-02   -1.5433    
  11  Prefactor     68.949        71.587        .24157E-03   -1.4045    
  12  Prefactor     .10003E-03    331.04        .20936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.374        28.580        .64706E-04   -1.4468    
  14  norm          3.0669        1.9380        .80100E-04   -1.5358    
  15  Prefactor     15.884        10.312        .10049E-03   -1.4911    
  16  Prefactor     .10000E-03    1.2801        .84872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1179        10.999        .15035E-03   -1.5174    
  18  Normalizat    1.3575        .27160        .27878E-03   -.81867    
  19  Prefactor     .89051        .18588        .24740E-03   -.96473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59737e-10
Minuit parameter uncertainties:
  1  35.7323
  2  20.3184
  3  3.55622e-06
  4  6.875e-05
  5  2.07753
  6  13.9255
  7  62.0185
  8  61.9688
  9  0.000569313
  10  14.6966
  11  71.6763
  12  0.00579203
  13  28.5899
  14  1.93805
  15  10.3136
  16  3.24405e-06
  17  11.0025
  18  0.271884
  19  0.186016
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.563e+01  6.202e+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:  8.905e-01  1.860e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.357e+00  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/706649/likelihoodResults_521856001_522115201_4FGL_J1010.8-0158_daily_bin1090.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) = 5927.04844855
delta logL = 0.550835480225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5927.02451004
delta logL = 0.574773991674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73473       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5587       1.0000          .0000       10.000    
     3 'Normalizat'    1.2519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94264       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=   5927.025     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      330 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72396        9.8615        .12194E-01    .12837E-02
   2  Index         5.5667        3.0921        .12174        .14984E-03
   3  Normalizat    1.2521        .50448E-01    .65158E-01    .17411E-04
   4  Prefactor     .94252        .37402E-01    .45546E-01    .15784E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.723961
  Index      = 5.56668
  Normalizat = 1.25211
  Prefactor  = 0.942522
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.025     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      363 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72396        28.370        .57641E-04   -1.5538    
   2  Index         5.5667        7.6849        .61646E-02    .11358    
   3  Normalizat    1.2521        .21541        .28824E-03   -.85007    
   4  Prefactor     .94252        .15472        .24128E-03   -.94671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.8593e-10
Minuit parameter uncertainties:
  1  9.06791
  2  6.96909
  3  0.215565
  4  0.154796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706649': 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) = 5927.02450783
delta logL = 0.5747762039

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  9.425e-01  1.548e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.252e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 152.704 -1.982
Photon Index (Free Index): 5.57 +/- 6.97
Photon Flux (Free Index): 1.13e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.44e-05 +/- 1.47e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='5.75e-01', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-01 12:39:30.683618', photon_index_error2='6.97', photon_index2='5.57', ts='0.08', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.47e-05', EG='1.36', time_epoch_completed='1630525170.68', return_code='0', job_id='706649', GAL2='0.94', EG2='1.25', return_code2='102', photon_flux_error2='1.02e-07', ts2='1.39', photon_index='2.54' WHERE bin_id='1090' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:39:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 706649: <4FGL_J1010.8-0158_daily_bin1090> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin1090 152.704 -1.9817 521856001 522115201 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 :                                   428.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            520 sec.

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

