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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin371
RA = 152.704, Dec = -1.9817
tmin = 335491201, tmax = 335750401
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='703717', job_status='RUN', time_executed='2021-09-01 12:20:47.684106', time_epoch_executed='1630524047.68' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703717

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703717/ft1_4FGL_J1010.8-0158_daily_bin371.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703717/ft2_4FGL_J1010.8-0158_daily_bin371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703717/ft1_4FGL_J1010.8-0158_daily_bin371.fits outfile=/scratch/kocevski/703717/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin371.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=335491201.0 tmax=335750401.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703717/ft1_filtered_4FGL_J1010.8-0158_daily_bin371.fits" evtable="EVENTS" scfile=/scratch/kocevski/703717/ft2_4FGL_J1010.8-0158_daily_bin371.fits sctable="SC_DATA" outfile=/scratch/kocevski/703717/ltcube_335491201_335750401_4FGL_J1010.8-0158_daily_bin371.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/703717/ft2_4FGL_J1010.8-0158_daily_bin371.fits
.....................!
real 16.59
user 16.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703717/ft1_filtered_4FGL_J1010.8-0158_daily_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/703717/ft2_4FGL_J1010.8-0158_daily_bin371.fits sctable="SC_DATA" expcube=/scratch/kocevski/703717/ltcube_335491201_335750401_4FGL_J1010.8-0158_daily_bin371.fits outfile=/scratch/kocevski/703717/expmap_335491201_335750401_4FGL_J1010.8-0158_daily_bin371.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/703717/ltcube_335491201_335750401_4FGL_J1010.8-0158_daily_bin371.fits
.....................!
real 191.43
user 186.51
sys 4.55

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/703717/ft1_filtered_4FGL_J1010.8-0158_daily_bin371.fits scfile=/scratch/kocevski/703717/ft2_4FGL_J1010.8-0158_daily_bin371.fits outfile=/scratch/kocevski/703717/cmap_335491201_335750401_4FGL_J1010.8-0158_daily_bin371.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703717/ft1_filtered_4FGL_J1010.8-0158_daily_bin371.fits scfile=/scratch/kocevski/703717/ft2_4FGL_J1010.8-0158_daily_bin371.fits outfile=/scratch/kocevski/703717/cmap_HighResolution_335491201_335750401_4FGL_J1010.8-0158_daily_bin371.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703717/ft1_filtered_4FGL_J1010.8-0158_daily_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/703717/ft2_4FGL_J1010.8-0158_daily_bin371.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703717/Model_4FGL_J1010.8-0158_daily_bin371.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/703717/ft1_filtered_4FGL_J1010.8-0158_daily_bin371.fits....................!
real 72.99
user 71.65
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.856       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12912       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5129       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.251       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.215       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.2446       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0225       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.732       1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.262       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13774E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.1163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8053       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1352       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0828       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=   7372.989     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1920 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.865        33.609       -.37163E-06   -.29396E-05
   2  Prefactor     .10000E-03    13.878        .68905E-06** at limit **
   3  norm          .12907        1.7141       -.27466E-07    .46911E-04
   4  norm          2.5134        .77403       -.52696E-07   -.28791E-03
   5  norm          .10000E-03    .84013        .12062E-06** at limit **
   6  Prefactor     15.255        13.476       -.18109E-06   -.10233E-04
   7  Prefactor     20.198        46.535       -.18520E-05   -.18178E-04
   8  Prefactor     .10000E-03    18.367       -.53085E-06** at limit **
   9  norm          7.2459        15.549        .81758E-07   -.13638E-04
  10  Prefactor     6.0281        16.330       -.55735E-06    .13850E-04
  11  Prefactor     45.642        70.458       -.12914E-05   -.21918E-04
  12  Prefactor     46.275        73.610        .12060E-05    .39102E-04
  13  Prefactor     .10000E-03    16.643        .29061E-06** at limit **
  14  norm          3.1166        1.6648       -.12138E-07    .11051E-05
  15  Prefactor     .10000E-03    5.1320        .22413E-08** at limit **
  16  Prefactor     .10000E-03    1.7275       -.29729E-06** at limit **
  17  Prefactor     3.8062        6.7072        .16666E-06    .68825E-04
  18  Normalizat    1.1344        .24139        .54258E-05   -.81492E-04
  19  Prefactor     1.0834        .17608       -.41789E-05   -.53379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.8655
  Prefactor  = 0.0001
  norm       = 0.129068
  norm       = 2.51342
  norm       = 0.0001
  Prefactor  = 15.2555
  Prefactor  = 20.1981
  Prefactor  = 0.0001
  norm       = 7.24587
  Prefactor  = 6.02808
  Prefactor  = 45.6416
  Prefactor  = 46.2746
  Prefactor  = 0.0001
  norm       = 3.11661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.80624
  Normalizat = 1.13443
  Prefactor  = 1.08339
 **********
 **   18 **HESSE 
 **********

 FCN=   7372.989     FROM HESSE     STATUS=OK           272 CALLS     2192 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.865        33.619        .65141E-04   -1.4476    
   2  Prefactor     .10000E-03    14.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .12907        17.417        .21614E-02   -1.5636    
   4  norm          2.5134        .77289        .39606E-04   -1.5391    
   5  norm          .10000E-03    .85870        .76924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.255        13.452        .10256E-03   -1.4927    
   7  Prefactor     20.198        46.503        .89083E-04   -1.4809    
   8  Prefactor     .10000E-03    18.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.2459        15.499        .14902E-03   -1.5170    
  10  Prefactor     6.0281        16.142        .16361E-03   -1.5217    
  11  Prefactor     45.642        70.608        .59288E-04   -1.4356    
  12  Prefactor     46.275        73.151        .58950E-04   -1.4346    
  13  Prefactor     .10000E-03    16.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1166        1.6601        .76848E-04   -1.5355    
  15  Prefactor     .10000E-03    5.2423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7666        .11062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8062        6.7050        .20692E-03   -1.5318    
  18  Normalizat    1.1344        .24130        .29037E-03   -.88654    
  19  Prefactor     1.0834        .17773        .22887E-03   -.89999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75559e-10
Minuit parameter uncertainties:
  1  33.6356
  2  4.6831e-05
  3  2.9984
  4  0.772892
  5  4.11253e-06
  6  13.4551
  7  46.5861
  8  7.46877e-05
  9  15.5077
  10  16.1534
  11  70.7381
  12  73.2929
  13  3.3122e-05
  14  1.66014
  15  3.32366e-06
  16  1.4205e-05
  17  6.70632
  18  0.241533
  19  0.177823
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  2.020e+01  4.659e+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.083e+00  1.778e-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.134e+00  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 152.704 -1.982
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703717/likelihoodResults_335491201_335750401_4FGL_J1010.8-0158_daily_bin371.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) = 7371.5101424
delta logL = 1.47847387916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7371.44951249
delta logL = 1.53910378722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84574       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3931       1.0000          .0000       10.000    
     3 'Normalizat'    1.0311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1382       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=   7371.450     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      284 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83895        7.3998        .10832E-01   -.10972E-02
   2  Index         5.3976        2.5571        .12869        .24208E-05
   3  Normalizat    1.0304        .50641E-01    .68368E-01   -.51199E-04
   4  Prefactor     1.1387        .39326E-01    .36287E-01   -.92228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.838951
  Index      = 5.39758
  Normalizat = 1.03042
  Prefactor  = 1.13871
 **********
 **   18 **HESSE 
 **********

 FCN=   7371.450     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      317 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83895        17.126        .49297E-03   -1.5525    
   2  Index         5.3976        4.1538        .48804E-02    .79601E-01
   3  Normalizat    1.0304        .18087        .30246E-03   -.92018    
   4  Prefactor     1.1387        .13763        .22392E-03   -.88239    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.73286e-10
Minuit parameter uncertainties:
  1  7.58299
  2  4.91052
  3  0.180975
  4  0.137669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703717': 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) = 7371.44950552
delta logL = 1.53911076217

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  8.390e-01  7.583e+00  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  5.398e+00  4.911e+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.139e+00  1.377e-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.030e+00  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 152.704 -1.982
Photon Index (Free Index): 5.40 +/- 4.91
Photon Flux (Free Index): 9.65e-08 +/- 6.53e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/703717/cmap_HighResolution_335491201_335750401_4FGL_J1010.8-0158_daily_bin371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='1.54e+00', photon_flux2='9.65e-08', job_status='DONE', time_completed='2021-09-01 12:31:00.380404', photon_index_error2='4.91', photon_index2='5.40', ts='0.22', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.08e-05', EG='1.13', time_epoch_completed='1630524660.38', return_code='0', job_id='703717', GAL2='1.14', EG2='1.03', return_code2='102', photon_flux_error2='6.53e-08', ts2='3.55', photon_index='2.54' WHERE bin_id='371' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:31:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 703717: <4FGL_J1010.8-0158_daily_bin371> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin371> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:20:29 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:20:31 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:20:31 2021
Terminated at Wed Sep  1 12:31:01 2021
Results reported at Wed Sep  1 12:31:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin371 152.704 -1.9817 335491201 335750401 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 :                                   611.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            632 sec.

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

