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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin290
RA = 152.704, Dec = -1.9817
tmin = 314496001, tmax = 314755201
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='702531', job_status='RUN', time_executed='2021-09-01 12:16:14.226030', time_epoch_executed='1630523774.23' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702531

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702531/ft1_4FGL_J1010.8-0158_daily_bin290.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702531/ft2_4FGL_J1010.8-0158_daily_bin290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702531/ft1_4FGL_J1010.8-0158_daily_bin290.fits outfile=/scratch/kocevski/702531/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin290.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=314496001.0 tmax=314755201.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.44
user 3.17
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702531/ft1_filtered_4FGL_J1010.8-0158_daily_bin290.fits" evtable="EVENTS" scfile=/scratch/kocevski/702531/ft2_4FGL_J1010.8-0158_daily_bin290.fits sctable="SC_DATA" outfile=/scratch/kocevski/702531/ltcube_314496001_314755201_4FGL_J1010.8-0158_daily_bin290.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/702531/ft2_4FGL_J1010.8-0158_daily_bin290.fits
.....................!
real 16.85
user 16.48
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702531/ft1_filtered_4FGL_J1010.8-0158_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/702531/ft2_4FGL_J1010.8-0158_daily_bin290.fits sctable="SC_DATA" expcube=/scratch/kocevski/702531/ltcube_314496001_314755201_4FGL_J1010.8-0158_daily_bin290.fits outfile=/scratch/kocevski/702531/expmap_314496001_314755201_4FGL_J1010.8-0158_daily_bin290.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/702531/ltcube_314496001_314755201_4FGL_J1010.8-0158_daily_bin290.fits
.....................!
real 191.36
user 186.90
sys 4.02

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/702531/ft1_filtered_4FGL_J1010.8-0158_daily_bin290.fits scfile=/scratch/kocevski/702531/ft2_4FGL_J1010.8-0158_daily_bin290.fits outfile=/scratch/kocevski/702531/cmap_314496001_314755201_4FGL_J1010.8-0158_daily_bin290.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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702531/ft1_filtered_4FGL_J1010.8-0158_daily_bin290.fits scfile=/scratch/kocevski/702531/ft2_4FGL_J1010.8-0158_daily_bin290.fits outfile=/scratch/kocevski/702531/cmap_HighResolution_314496001_314755201_4FGL_J1010.8-0158_daily_bin290.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702531/ft1_filtered_4FGL_J1010.8-0158_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/702531/ft2_4FGL_J1010.8-0158_daily_bin290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702531/Model_4FGL_J1010.8-0158_daily_bin290.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/702531/ft1_filtered_4FGL_J1010.8-0158_daily_bin290.fits.....................!
real 53.51
user 51.68
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.155       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.311       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9334       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.239       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11580E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36759E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    64.153       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1659       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37675       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .69032       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3525       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=   5140.004     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1971 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.370        57.557        .17265E-04   -.60691E-05
   2  Prefactor     15.318        16.492       -.35413E-05   -.74917E-04
   3  norm          .10000E-03    1.5798        .29640E-07** at limit **
   4  norm          .10000E-03    .44191        .18457E-06** at limit **
   5  norm          2.9336        1.9377        .13225E-06    .16115E-03
   6  Prefactor     37.224        17.955        .13731E-04    .12265E-03
   7  Prefactor     29.628        42.259        .21987E-04   -.42753E-06
   8  Prefactor     .10000E-03    47.400       -.59543E-05** at limit **
   9  norm          .10000E-03    5.6359       -.39295E-06** at limit **
  10  Prefactor     .10003E-03    26.341       -.93626E-05** at limit **
  11  Prefactor     .10000E-03    22.812        .71504E-06** at limit **
  12  Prefactor     64.174        54.890        .78087E-05    .23191E-03
  13  Prefactor     .10000E-03    9.8010       -.32827E-06** at limit **
  14  norm          2.1665        1.6245       -.12176E-06   -.42957E-03
  15  Prefactor     .10000E-03    6.2236        .68317E-07** at limit **
  16  Prefactor     .37313        2.1010        .67417E-06   -.78081E-03
  17  Prefactor     .10000E-03    4.2170        .56124E-07** at limit **
  18  Normalizat    .69041        .23983       -.12500E-04    .73258E-04
  19  Prefactor     1.3523        .17971        .17537E-05   -.30680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3697
  Prefactor  = 15.3183
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.93365
  Prefactor  = 37.2236
  Prefactor  = 29.628
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 64.1742
  Prefactor  = 0.0001
  norm       = 2.16646
  Prefactor  = 0.0001
  Prefactor  = 0.37313
  Prefactor  = 0.0001
  Normalizat = 0.690409
  Prefactor  = 1.35231
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.004     FROM HESSE     STATUS=OK           266 CALLS     2237 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.370        57.499        .99647E-04   -1.4899    
   2  Prefactor     15.318        16.573        .10236E-03   -1.4925    
   3  norm          .10000E-03    1.5889        .87996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7071        .91488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9336        1.9428        .78904E-04   -1.5365    
   6  Prefactor     37.224        17.854        .65677E-04   -1.4487    
   7  Prefactor     29.628        42.163        .73600E-04   -1.4619    
   8  Prefactor     .10000E-03    47.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.6390        .16625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    27.142        .42604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     64.174        54.466        .50103E-04   -1.4104    
  13  Prefactor     .10000E-03    9.8058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1665        1.6150        .75576E-04   -1.5414    
  15  Prefactor     .10000E-03    6.3234        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .37313        8.1346        .19654E-02   -1.5586    
  17  Prefactor     .10000E-03    4.2246        .14374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .69041        .27803        .33826E-03   -1.0427    
  19  Prefactor     1.3523        .21161        .20159E-03   -.81765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17883e-09
Minuit parameter uncertainties:
  1  57.6948
  2  16.5776
  3  4.20485e-06
  4  2.65078e-05
  5  1.94287
  6  17.8564
  7  42.2049
  8  0.000231305
  9  8.40765e-05
  10  0.00194142
  11  0.00019116
  12  54.5079
  13  0.000107272
  14  1.61507
  15  2.44745e-05
  16  3.48446
  17  1.28083e-05
  18  0.278599
  19  0.211745
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
504   Normalization:  6.904e-01  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/702531/likelihoodResults_314496001_314755201_4FGL_J1010.8-0158_daily_bin290.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) = 5139.73197806
delta logL = 0.272345173901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5139.72231468
delta logL = 0.282008557801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.973       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3875       1.0000          .0000       10.000    
     3 'Normalizat'    .65735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3692       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=   5139.722     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      314 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.001        42.342        .10351E-03    .30721E-03
   2  Index         3.3882        1.7159        .76436E-02    .10097E-03
   3  Normalizat    .65731        .26407        .34609E-03   -.38434E-04
   4  Prefactor     1.3692        .21054        .20049E-03   -.29841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0014
  Index      = 3.3882
  Normalizat = 0.657311
  Prefactor  = 1.36921
 **********
 **   18 **HESSE 
 **********

 FCN=   5139.722     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.001        30.894        .41403E-05   -1.4933    
   2  Index         3.3882        1.2629        .30574E-03   -.32822    
   3  Normalizat    .65731        .26396        .13843E-04   -1.0560    
   4  Prefactor     1.3692        .21025        .40099E-04   -.81272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48451e-10
Minuit parameter uncertainties:
  1  30.9272
  2  1.27837
  3  0.26447
  4  0.210382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702531': 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) = 5139.72231083
delta logL = 0.282012406813

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.500e+01  3.093e+01  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  3.388e+00  1.278e+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.369e+00  2.104e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  6.573e-01  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 152.704 -1.982
Photon Index (Free Index): 3.39 +/- 1.28
Photon Flux (Free Index): 5.62e-08 +/- 6.09e-08
Energy Flux (Free Index): 9.66e-06 +/- 1.03e-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/702531/cmap_HighResolution_314496001_314755201_4FGL_J1010.8-0158_daily_bin290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='9.66e-06', dlogl='2.82e-01', photon_flux2='5.62e-08', job_status='DONE', time_completed='2021-09-01 12:25:08.488155', photon_index_error2='1.28', photon_index2='3.39', ts='0.63', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.03e-05', EG='0.69', time_epoch_completed='1630524308.49', return_code='0', job_id='702531', GAL2='1.37', EG2='0.66', return_code2='0', photon_flux_error2='6.09e-08', ts2='1.23', photon_index='2.54' WHERE bin_id='290' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:25:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 702531: <4FGL_J1010.8-0158_daily_bin290> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin290> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:15:46 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:15:54 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:15:54 2021
Terminated at Wed Sep  1 12:25:09 2021
Results reported at Wed Sep  1 12:25:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin290 152.704 -1.9817 314496001 314755201 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 :                                   530.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   554 sec.
    Turnaround time :                            563 sec.

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

