/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 12 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1010.8-0158_daily_bin215
RA = 152.704, Dec = -1.9817
tmin = 295056001, tmax = 295315201
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='702420', job_status='RUN', time_executed='2021-09-01 12:16:15.400920', time_epoch_executed='1630523775.4' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702420

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702420/ft1_4FGL_J1010.8-0158_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702420/ft2_4FGL_J1010.8-0158_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702420/ft1_4FGL_J1010.8-0158_daily_bin215.fits outfile=/scratch/kocevski/702420/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin215.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.64
user 2.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/702420/ft2_4FGL_J1010.8-0158_daily_bin215.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/702420/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin215.fits evtable="EVENTS" outfile="/scratch/kocevski/702420/ft1_filtered_4FGL_J1010.8-0158_daily_bin215.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702420/ft1_filtered_4FGL_J1010.8-0158_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/702420/ft2_4FGL_J1010.8-0158_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/702420/ltcube_295056001_295315201_4FGL_J1010.8-0158_daily_bin215.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/702420/ft2_4FGL_J1010.8-0158_daily_bin215.fits
.....................!
real 16.44
user 15.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702420/ft1_filtered_4FGL_J1010.8-0158_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/702420/ft2_4FGL_J1010.8-0158_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/702420/ltcube_295056001_295315201_4FGL_J1010.8-0158_daily_bin215.fits outfile=/scratch/kocevski/702420/expmap_295056001_295315201_4FGL_J1010.8-0158_daily_bin215.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/702420/ltcube_295056001_295315201_4FGL_J1010.8-0158_daily_bin215.fits
.....................!
real 194.62
user 187.85
sys 4.65

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/702420/ft1_filtered_4FGL_J1010.8-0158_daily_bin215.fits scfile=/scratch/kocevski/702420/ft2_4FGL_J1010.8-0158_daily_bin215.fits outfile=/scratch/kocevski/702420/cmap_295056001_295315201_4FGL_J1010.8-0158_daily_bin215.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=152.704 yref=-1.9817 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702420/ft1_filtered_4FGL_J1010.8-0158_daily_bin215.fits scfile=/scratch/kocevski/702420/ft2_4FGL_J1010.8-0158_daily_bin215.fits outfile=/scratch/kocevski/702420/cmap_HighResolution_295056001_295315201_4FGL_J1010.8-0158_daily_bin215.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702420/ft1_filtered_4FGL_J1010.8-0158_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/702420/ft2_4FGL_J1010.8-0158_daily_bin215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702420/Model_4FGL_J1010.8-0158_daily_bin215.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/702420/ft1_filtered_4FGL_J1010.8-0158_daily_bin215.fits.....................!
real 64.05
user 62.23
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8464       1.0000         .10000E-03   10000.    
     4 'norm      '    .58125       1.0000         .10000E-03   10000.    
     5 'norm      '    .75779       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.520       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.160       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.143       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3501       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76474       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=   6180.427     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1866 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.164       -.23821E-05** at limit **
   2  Prefactor     .10000E-03    7.6462       -.40400E-06** at limit **
   3  norm          6.8464        3.9287        .10432E-06    .41339E-04
   4  norm          .58127        .59683       -.29612E-06   -.17624E-02
   5  norm          .75772        1.1914       -.18728E-06   -.86036E-03
   6  Prefactor     .10000E-03    19.749        .55358E-05** at limit **
   7  Prefactor     .10000E-03    20.847        .65421E-05** at limit **
   8  Prefactor     17.517        25.745       -.46354E-05    .75022E-05
   9  norm          4.7768        9.1983        .18200E-05   -.39534E-04
  10  Prefactor     11.159        10.070        .39837E-05    .13751E-03
  11  Prefactor     14.104        55.787       -.90022E-04    .32434E-05
  12  Prefactor     .10000E-03    19.215       -.83639E-05** at limit **
  13  Prefactor     .10000E-03    7.5724        .11087E-05** at limit **
  14  norm          .10000E-03    .51404       -.33448E-07** at limit **
  15  Prefactor     .10000E-03    5.1193       -.87143E-07** at limit **
  16  Prefactor     .10000E-03    1.8223        .71558E-07** at limit **
  17  Prefactor     .10000E-03    6.7397       -.48221E-06** at limit **
  18  Normalizat    1.3504        .19473        .74556E-05   -.38682E-03
  19  Prefactor     .76457        .14294       -.31310E-05    .42360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.84636
  norm       = 0.581272
  norm       = 0.757717
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 17.5171
  norm       = 4.77684
  Prefactor  = 11.1595
  Prefactor  = 14.1044
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35039
  Prefactor  = 0.764565
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.427     FROM HESSE     STATUS=OK           266 CALLS     2132 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8464        3.9256        .11415E-03   -1.5185    
   4  norm          .58127        .57390        .57697E-03   -1.5555    
   5  norm          .75772        .98609        .10447E-02   -1.5534    
   6  Prefactor     .10000E-03    20.630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.517        25.758        .95687E-04   -1.4871    
   9  norm          4.7768        9.1624        .18404E-03   -1.5271    
  10  Prefactor     11.159        10.057        .11993E-03   -1.5040    
  11  Prefactor     14.104        55.891        .10651E-03   -1.4957    
  12  Prefactor     .10000E-03    19.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.5911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .53247        .10998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1983        .17359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8789        .20721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.8036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3504        .22834        .24022E-03   -.82074    
  19  Prefactor     .76457        .16856        .23457E-03   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04235e-09
Minuit parameter uncertainties:
  1  9.25362e-05
  2  3.19912e-05
  3  3.9257
  4  0.573908
  5  0.986111
  6  0.000495138
  7  2.55724e-05
  8  25.7742
  9  9.16512
  10  10.058
  11  56.0996
  12  0.000228283
  13  6.76236e-05
  14  1.25621e-06
  15  3.24218e-05
  16  1.02106e-05
  17  1.48737e-05
  18  0.228508
  19  0.168675
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  2.557e-05  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:  7.646e-01  1.687e-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.350e+00  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 152.704 -1.982
Photon Flux Upper Limit: 7.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/702420/likelihoodResults_295056001_295315201_4FGL_J1010.8-0158_daily_bin215.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) = 6180.42729945
delta logL = -0.000228042257731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6180.42707267
delta logL = -1.26213581098e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9759       1.0000          .0000       10.000    
     3 'Normalizat'    1.3504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76456       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=   6180.427     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10490E-03    11.490        .18142E-01** at limit **
   2  Index         2.8607        8.2492        .50000        .16378E-04
   3  Normalizat    1.3504        .40830E-02    .24021E-03   -.24610E-05
   4  Prefactor     .76456        .31115E-02    .23457E-03   -.14394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104903
  Index      = 2.86066
  Normalizat = 1.35041
  Prefactor  = 0.764557
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.427     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10490E-03    90.834        .30349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8607        7.4609        .50000       -.44213    
   3  Normalizat    1.3504        .11456E-01    .96085E-05   -.82074    
   4  Prefactor     .76456        .87297E-02    .93830E-05   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.61574e-09
Minuit parameter uncertainties:
  1  0.0422708
  2  364.47
  3  0.0114555
  4  0.00872971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702420': 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) = 6180.42707231
delta logL = -9.05514752958e-07

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.049e-04  4.227e-02  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.861e+00  3.645e+02  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:  7.646e-01  8.730e-03  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.350e+00  1.146e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.704 -1.982

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2021-09-01 12:25:44.707575', job_id='702420', GAL2='0.76', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630524344.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-9.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='215' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:25:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 702420: <4FGL_J1010.8-0158_daily_bin215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin215 152.704 -1.9817 295056001 295315201 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 :                                   565.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             327.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            608 sec.

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

