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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin392
RA = 152.704, Dec = -1.9817
tmin = 340934401, tmax = 341193601
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='703747', job_status='RUN', time_executed='2021-09-01 12:23:01.915827', time_epoch_executed='1630524181.92' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703747

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703747/ft1_4FGL_J1010.8-0158_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703747/ft2_4FGL_J1010.8-0158_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703747/ft1_4FGL_J1010.8-0158_daily_bin392.fits outfile=/scratch/kocevski/703747/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin392.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=340934401.0 tmax=341193601.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.40
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703747/ft1_filtered_4FGL_J1010.8-0158_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/703747/ft2_4FGL_J1010.8-0158_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/703747/ltcube_340934401_341193601_4FGL_J1010.8-0158_daily_bin392.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/703747/ft2_4FGL_J1010.8-0158_daily_bin392.fits
.....................!
real 14.98
user 14.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703747/ft1_filtered_4FGL_J1010.8-0158_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/703747/ft2_4FGL_J1010.8-0158_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/703747/ltcube_340934401_341193601_4FGL_J1010.8-0158_daily_bin392.fits outfile=/scratch/kocevski/703747/expmap_340934401_341193601_4FGL_J1010.8-0158_daily_bin392.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/703747/ltcube_340934401_341193601_4FGL_J1010.8-0158_daily_bin392.fits
.....................!
real 191.03
user 185.79
sys 4.78

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/703747/ft1_filtered_4FGL_J1010.8-0158_daily_bin392.fits scfile=/scratch/kocevski/703747/ft2_4FGL_J1010.8-0158_daily_bin392.fits outfile=/scratch/kocevski/703747/cmap_340934401_341193601_4FGL_J1010.8-0158_daily_bin392.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703747/ft1_filtered_4FGL_J1010.8-0158_daily_bin392.fits scfile=/scratch/kocevski/703747/ft2_4FGL_J1010.8-0158_daily_bin392.fits outfile=/scratch/kocevski/703747/cmap_HighResolution_340934401_341193601_4FGL_J1010.8-0158_daily_bin392.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703747/ft1_filtered_4FGL_J1010.8-0158_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/703747/ft2_4FGL_J1010.8-0158_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703747/Model_4FGL_J1010.8-0158_daily_bin392.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/703747/ft1_filtered_4FGL_J1010.8-0158_daily_bin392.fits.....................!
real 67.47
user 66.19
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.465       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2825       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9956       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.974       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86101       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.637       1.0000         .10000E-03   10000.    
    12 'Prefactor '    155.48       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13713E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13207E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3735       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.517       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6008       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .56314       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6545.354     FROM MIGRAD    STATUS=FAILED       658 CALLS     2478 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.476        23.562        .84508E-04   -.87954E-04
   2  Prefactor     .10000E-03    18.399        .18142E-02** at limit **
   3  norm          .10000E-03    1.7984        .10507E-02** at limit **
   4  norm          1.2825        .70949        .47871E-04   -.23962E-03
   5  norm          2.3827        1.4832        .75412E-04   -.28643E-04
   6  Prefactor     1.9889        38.064        .14661E-02    .41996E-04
   7  Prefactor     .10000E-03    18.261        .18142E-02** at limit **
   8  Prefactor     57.980        38.639        .52689E-04   -.19402E-03
   9  norm          .10000E-03    6.6461        .18142E-02** at limit **
  10  Prefactor     .80954        1388.3        .50850E-02    .11052E-02
  11  Prefactor     37.672        45.986        .32665E-03   -.17057E-03
  12  Prefactor     155.70        342.96        .16166E-03   -.13036E-03
  13  Prefactor     .10000E-03    32.176        .18142E-02** at limit **
  14  norm          .10000E-03    .62222        .12210E-03** at limit **
  15  Prefactor     .10000E-03    9.8043        .30781E-02** at limit **
  16  Prefactor     6.3738        4.5569        .13589E-03   -.10282E-03
  17  Prefactor     20.518        13.880        .88427E-04   -.10118E-03
  18  Normalizat    1.6008        .24894        .23946E-03   -.90912E-03
  19  Prefactor     .56329        .16715        .27640E-03   -.55869E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6545.354     FROM SIMPLEX   STATUS=PROGRESS     854 CALLS     3332 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.476        23.562        .17468E-06   -1.4759    
   2  Prefactor     .10000E-03    18.399        .57977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7984        .16888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2825        .70949        .11376E-06   -1.5481    
   5  norm          2.3827        1.4832        .11155E-06   -1.5399    
   6  Prefactor     1.9889        38.064        .86711E-07   -1.5426    
   7  Prefactor     .10000E-03    18.261        .65827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.980        38.639        .10599E-06   -1.4184    
   9  norm          .10000E-03    6.6461        .28252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80954        1388.3        .23560E-05   -1.5528    
  11  Prefactor     37.672        45.986        .13018E-06   -1.4480    
  12  Prefactor     155.70        342.96        .18150E-06   -1.3206    
  13  Prefactor     .10000E-03    32.176        .55219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .62222        .10060E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8043        .78060E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3738        4.5569        .10957E-06   -1.5203    
  17  Prefactor     20.518        13.880        .10686E-06   -1.4802    
  18  Normalizat    1.6008        .24894        .54098E-07   -.74985    
  19  Prefactor     .56329        .16715        .78641E-07   -1.0915    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6545.354     FROM MIGRAD    STATUS=CONVERGED    256 CALLS     3588 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.476        23.561        .16902E-04   -.83407E-05
   2  Prefactor     .10000E-03    18.415        .36285E-03** at limit **
   3  norm          .10000E-03    1.7988        .21013E-03** at limit **
   4  norm          1.2825        .70946        .19149E-05   -.33248E-04
   5  norm          2.3827        1.4832        .30165E-05   -.52764E-05
   6  Prefactor     1.9889        27.237        .58646E-04    .27527E-04
   7  Prefactor     .10000E-03    18.262        .36285E-03** at limit **
   8  Prefactor     57.980        38.638        .10538E-04   -.49627E-04
   9  norm          .10000E-03    6.6461        .36285E-03** at limit **
  10  Prefactor     .80904        306.74        .10170E-02   -.30842E-04
  11  Prefactor     37.672        45.291        .13066E-04   -.24885E-04
  12  Prefactor     155.70        163.34        .32331E-04    .34671E-04
  13  Prefactor     .10000E-03    32.177        .36285E-03** at limit **
  14  norm          .10000E-03    .62223        .24420E-04** at limit **
  15  Prefactor     .10000E-03    9.8644        .61561E-03** at limit **
  16  Prefactor     6.3738        4.5454        .54357E-05   -.10457E-04
  17  Prefactor     20.518        13.878        .35371E-05   -.20571E-04
  18  Normalizat    1.6008        .24894        .47893E-04   -.19550E-03
  19  Prefactor     .56329        .16719        .55279E-04   -.12163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4757
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.28246
  norm       = 2.38267
  Prefactor  = 1.98887
  Prefactor  = 0.0001
  Prefactor  = 57.9797
  norm       = 0.0001
  Prefactor  = 0.809039
  Prefactor  = 37.672
  Prefactor  = 155.704
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.37378
  Prefactor  = 20.5177
  Normalizat = 1.60075
  Prefactor  = 0.563286
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.354     FROM HESSE     STATUS=OK           250 CALLS     3838 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.476        23.562        .33803E-05   -1.4759    
   2  Prefactor     .10000E-03    18.416        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7988        .42027E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2825        .70949        .38297E-06   -1.5481    
   5  norm          2.3827        1.4835        .60330E-06   -1.5399    
   6  Prefactor     1.9889        26.792        .23458E-05   -1.5426    
   7  Prefactor     .10000E-03    18.262        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.980        38.638        .21076E-05   -1.4184    
   9  norm          .10000E-03    6.6461        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80904        257.28        .40680E-04   -1.5528    
  11  Prefactor     37.672        45.254        .26132E-05   -1.4480    
  12  Prefactor     155.70        150.51        .64663E-05   -1.3206    
  13  Prefactor     .10000E-03    32.177        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .62222        .48839E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8669        .12312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3738        4.5446        .10871E-05   -1.5203    
  17  Prefactor     20.518        13.873        .70741E-06   -1.4802    
  18  Normalizat    1.6008        .24900        .95786E-05   -.74985    
  19  Prefactor     .56329        .16722        .11056E-04   -1.0916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24566e-10
Minuit parameter uncertainties:
  1  23.5719
  2  5.65869e-05
  3  6.40171e-06
  4  0.709499
  5  1.48349
  6  14.607
  7  1.8707e-05
  8  38.6552
  9  3.75451e-06
  10  28.9791
  11  45.2952
  12  150.881
  13  5.45869e-06
  14  2.75573e-06
  15  7.87809e-05
  16  4.54484
  17  13.8748
  18  0.249194
  19  0.167368
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.871e-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:  5.633e-01  1.674e-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.601e+00  2.492e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703747/likelihoodResults_340934401_341193601_4FGL_J1010.8-0158_daily_bin392.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) = 6545.35454288
delta logL = -0.000260720854385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6545.35428383
delta logL = -1.67625148606e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0257       1.0000          .0000       10.000    
     3 'Normalizat'    1.6008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56329       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=   6545.354     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10659E-03    11.586        .18142E-01** at limit **
   2  Index         2.8851        6.4286        .50000        .19299E-04
   3  Normalizat    1.6008        .45998E-02    .23947E-03   -.52697E-05
   4  Prefactor     .56329        .33439E-02    .27639E-03   -.12216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106585
  Index      = 2.88511
  Normalizat = 1.60076
  Prefactor  = 0.563286
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.354     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10659E-03    92.977        .28958E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8851        8.1204        .50000       -.43673    
   3  Normalizat    1.6008        .13072E-01    .95787E-05   -.74985    
   4  Prefactor     .56329        .95030E-02    .11056E-04   -1.0916    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01606e-08
Minuit parameter uncertainties:
  1  0.0495654
  2  415.193
  3  0.0130722
  4  0.00950305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703747': 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) = 6545.35428335
delta logL = -1.19591368275e-06

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.066e-04  4.957e-02  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.885e+00  4.152e+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:  5.633e-01  9.503e-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.601e+00  1.307e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/703747/cmap_HighResolution_340934401_341193601_4FGL_J1010.8-0158_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-01 12:34:20.272012', job_id='703747', GAL2='0.56', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1630524860.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='-1.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='392' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:34:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 703747: <4FGL_J1010.8-0158_daily_bin392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin392 152.704 -1.9817 340934401 341193601 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 :                                   678.44 sec.
    Max Memory :                                 1029 MB
    Average Memory :                             284.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            830 sec.

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

