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


Performing analysis on: 4FGL_J1010.2-3119_daily_bin1542
RA = 152.572, Dec = -31.3207
tmin = 639014401, tmax = 639273601
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='700878', job_status='RUN', time_executed='2021-09-01 12:15:11.238932', time_epoch_executed='1630523711.24' WHERE source_name='4FGL J1010.2-3119' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700878/ft1_4FGL_J1010.2-3119_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700878/ft1_4FGL_J1010.2-3119_daily_bin1542.fits outfile=/scratch/kocevski/700878/ft1_filteredMKT_4FGL_J1010.2-3119_daily_bin1542.fits ra=152.572 dec=-31.3207 rad=12.0 tmin=639014401.0 tmax=639273601.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 5.46
user 5.15
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.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/700878/ft1_filteredMKT_4FGL_J1010.2-3119_daily_bin1542.fits evtable="EVENTS" outfile="/scratch/kocevski/700878/ft1_filtered_4FGL_J1010.2-3119_daily_bin1542.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.56
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700878/ft1_filtered_4FGL_J1010.2-3119_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/700878/ltcube_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.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/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits
.....................!
real 17.39
user 16.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700878/ft1_filtered_4FGL_J1010.2-3119_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/700878/ltcube_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.fits outfile=/scratch/kocevski/700878/expmap_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.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/700878/ltcube_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.fits
.....................!
real 192.60
user 187.27
sys 4.62

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
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 185 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1010.2-3119 @ 152.572 -31.3207

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/700878/ft1_filtered_4FGL_J1010.2-3119_daily_bin1542.fits scfile=/scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits outfile=/scratch/kocevski/700878/cmap_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.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.572 yref=-31.3207 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700878/ft1_filtered_4FGL_J1010.2-3119_daily_bin1542.fits scfile=/scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits outfile=/scratch/kocevski/700878/cmap_HighResolution_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.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.572 yref=-31.3207 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/700878/ft1_filtered_4FGL_J1010.2-3119_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700878/Model_4FGL_J1010.2-3119_daily_bin1542.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
adding source Vela Junior
Working on...
/scratch/kocevski/700878/ft1_filtered_4FGL_J1010.2-3119_daily_bin1542.fits.....................!
real 69.78
user 67.68
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/700878/ft1_filtered_4FGL_J1010.2-3119_daily_bin1542.fits', '/scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits', expMap='/scratch/kocevski/700878/expmap_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.fits', expCube='/scratch/kocevski/700878/ltcube_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/700878/Model_4FGL_J1010.2-3119_daily_bin1542.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1010.2-3119'

4FGL J1010.2-3119
   Spectrum: PowerLaw
334    Prefactor:  2.205e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
335        Index:  1.764e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  5.749e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/700878/ft1_filtered_4FGL_J1010.2-3119_daily_bin1542.fits
Spacecraft file(s): /scratch/kocevski/700878/ft2_4FGL_J1010.2-3119_daily_bin1542.fits
Exposure map: /scratch/kocevski/700878/expmap_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.fits
Exposure cube: /scratch/kocevski/700878/ltcube_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/700878/Model_4FGL_J1010.2-3119_daily_bin1542.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) = 5754.86892025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.3568       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10839E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.425       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8964       1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.359       1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37845E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.255       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98785       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5754.867     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1869 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.162        13.808        .10109E-06    .14754E-04
   2  Prefactor     .10000E-03    25.270       -.39713E-05** at limit **
   3  norm          .10000E-03    2.2949       -.69928E-07** at limit **
   4  norm          4.3614        30.321       -.17885E-05   -.32040E-05
   5  norm          .10000E-03    11.242        .87331E-06** at limit **
   6  norm          .10000E-03    1.4714        .18316E-06** at limit **
   7  norm          .10000E-03    11.306        .63505E-06** at limit **
   8  Prefactor     42.428        37.014       -.42584E-07   -.24819E-04
   9  Prefactor     8.8945        19.278        .49497E-06   -.43867E-05
  10  norm          .10000E-03    8.5482        .10886E-05** at limit **
  11  norm          .10000E-03    3.4592        .19626E-06** at limit **
  12  Prefactor     .10000E-03    6.6383        .24110E-07** at limit **
  13  Prefactor     15.326        18.521        .25189E-06   -.19679E-04
  14  norm          .10000E-03    1.9676        .65577E-06** at limit **
  15  Prefactor     .10000E-03    10.362       -.23580E-05** at limit **
  16  Prefactor     .10000E-03    23.726       -.38418E-05** at limit **
  17  Prefactor     23.220        18.819       -.12696E-06   -.27460E-04
  18  Normalizat    .98751        .30056       -.34154E-05   -.68031E-05
  19  Prefactor     1.0142        .11258        .73059E-06   -.30845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1616
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.36142
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 42.4278
  Prefactor  = 8.89448
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3263
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.22
  Normalizat = 0.987514
  Prefactor  = 1.01417
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.867     FROM HESSE     STATUS=OK           268 CALLS     2137 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.162        13.811        .10644E-03   -1.4955    
   2  Prefactor     .10000E-03    25.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2992        .11221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.3614        30.077        .19297E-03   -1.5290    
   5  norm          .10000E-03    11.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.7349        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.428        37.097        .61546E-04   -1.4404    
   9  Prefactor     8.8945        19.270        .13438E-03   -1.5111    
  10  norm          .10000E-03    8.6250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.4672        .13785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.326        18.499        .10220E-03   -1.4925    
  14  norm          .10000E-03    1.9929        .10427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.317        .30000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.220        18.777        .83063E-04   -1.4744    
  18  Normalizat    .98751        .32574        .41651E-03   -.93450    
  19  Prefactor     1.0142        .12534        .16003E-03   -.92259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31948e-10
Minuit parameter uncertainties:
  1  13.8145
  2  0.000108215
  3  1.59636e-06
  4  22.9228
  5  2.1629e-05
  6  6.76767e-05
  7  2.82821e-05
  8  37.1167
  9  19.2839
  10  2.50791e-05
  11  5.33103e-06
  12  5.53923e-06
  13  18.5056
  14  7.0572e-06
  15  3.97614e-05
  16  0.000144856
  17  18.7814
  18  0.326395
  19  0.125375
Done.

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

Extracting fit parameters...

4FGL J1010.2-3119
   Spectrum: PowerLaw
334    Prefactor:  8.894e+00  1.928e+01  1.000e-04  1.000e+04 ( 1.000e-14)
335        Index:  1.764e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  5.749e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.014e+00  1.254e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.875e-01  3.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 152.572 -31.321
Photon Flux Upper Limit: 9.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700878/likelihoodResults_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.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) = 5754.80297527
delta logL = 0.0636683695193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5754.8016689
delta logL = 0.0649747448679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6639       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1172       1.0000          .0000       10.000    
     3 'Normalizat'    .97805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+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=   5754.802     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      310 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6615        23.200        .16879E-03    .11774E-03
   2  Index         2.1171        1.4441        .92611E-02    .53324E-04
   3  Normalizat    .97801        .31710        .41823E-03   -.25438E-03
   4  Prefactor     1.0152        .12362        .15993E-03   -.84315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66148
  Index      = 2.11709
  Normalizat = 0.978015
  Prefactor  = 1.01518
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.802     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6615        15.938        .67515E-05   -1.5232    
   2  Index         2.1171        1.0159        .37045E-03   -.61454    
   3  Normalizat    .97801        .31548        .16729E-04   -.93771    
   4  Prefactor     1.0152        .12326        .31987E-04   -.92225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97629e-10
Minuit parameter uncertainties:
  1  15.9504
  2  1.02663
  3  0.31608
  4  0.123299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700878': 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) = 5754.80166809
delta logL = 0.0649755514196

Extracting fit parameters...

4FGL J1010.2-3119
   Spectrum: PowerLaw
334    Prefactor:  5.661e+00  1.595e+01  1.000e-04  1.000e+04 ( 1.000e-14)
335        Index:  2.117e+00  1.027e+00  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  5.749e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.015e+00  1.233e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.780e-01  3.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
Ra Dec: 152.572 -31.321

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/700878/cmap_HighResolution_639014401_639273601_4FGL_J1010.2-3119_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.96e-08', time_completed='2021-09-01 12:25:23.769612', job_id='700878', GAL2='1.02', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1630524323.77', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.50e-02', ts2='0.39', photon_index_error='0.00', photon_index='1.76' WHERE bin_id='1542' AND source_name='4FGL J1010.2-3119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:25:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 700878: <4FGL_J1010.2-3119_daily_bin1542> in cluster <slac> Done

Job <4FGL_J1010.2-3119_daily_bin1542> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 12:10:53 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:12:01 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:12:01 2021
Terminated at Wed Sep  1 12:25:24 2021
Results reported at Wed Sep  1 12:25:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.2-3119_daily_bin1542 152.572 -31.3207 639014401 639273601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1010.2-3119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   609.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            871 sec.

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

