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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1388
RA = 152.199, Dec = -29.1559
tmin = 599097601, tmax = 599356801
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='693019', job_status='RUN', time_executed='2021-09-01 11:49:49.725005', time_epoch_executed='1630522189.73' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693019/ft1_4FGL_J1008.7-2909_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693019/ft1_4FGL_J1008.7-2909_daily_bin1388.fits outfile=/scratch/kocevski/693019/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1388.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=599097601.0 tmax=599356801.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.89
user 2.64
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.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/693019/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1388.fits evtable="EVENTS" outfile="/scratch/kocevski/693019/ft1_filtered_4FGL_J1008.7-2909_daily_bin1388.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693019/ft1_filtered_4FGL_J1008.7-2909_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/693019/ltcube_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.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/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits
.....................!
real 15.07
user 14.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693019/ft1_filtered_4FGL_J1008.7-2909_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/693019/ltcube_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.fits outfile=/scratch/kocevski/693019/expmap_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.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/693019/ltcube_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.fits
.....................!
real 192.06
user 186.70
sys 4.67

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1008.7-2909 @ 152.199 -29.1559

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/693019/ft1_filtered_4FGL_J1008.7-2909_daily_bin1388.fits scfile=/scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits outfile=/scratch/kocevski/693019/cmap_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.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.199 yref=-29.1559 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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693019/ft1_filtered_4FGL_J1008.7-2909_daily_bin1388.fits scfile=/scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits outfile=/scratch/kocevski/693019/cmap_HighResolution_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.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.199 yref=-29.1559 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693019/ft1_filtered_4FGL_J1008.7-2909_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693019/Model_4FGL_J1008.7-2909_daily_bin1388.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/693019/ft1_filtered_4FGL_J1008.7-2909_daily_bin1388.fits.....................!
real 102.14
user 100.68
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/693019/ft1_filtered_4FGL_J1008.7-2909_daily_bin1388.fits', '/scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits', expMap='/scratch/kocevski/693019/expmap_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.fits', expCube='/scratch/kocevski/693019/ltcube_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/693019/Model_4FGL_J1008.7-2909_daily_bin1388.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1008.7-2909'

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  3.409e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.483e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/693019/ft1_filtered_4FGL_J1008.7-2909_daily_bin1388.fits
Spacecraft file(s): /scratch/kocevski/693019/ft2_4FGL_J1008.7-2909_daily_bin1388.fits
Exposure map: /scratch/kocevski/693019/expmap_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.fits
Exposure cube: /scratch/kocevski/693019/ltcube_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/693019/Model_4FGL_J1008.7-2909_daily_bin1388.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) = 9939.4105412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.579       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .87361E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.249       1.0000         .10000E-03   10000.    
    14 'norm      '    .33874E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1512       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1050       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3668       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9939.358     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1667 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3619        6.8963        .27778E-06    .33985E-04
   2  Prefactor     11.595        30.912       -.48700E-05    .58840E-04
   3  norm          .10000E-03    1.9000        .14999E-06** at limit **
   4  norm          .10000E-03    7.4040       -.65469E-07** at limit **
   5  norm          .10000E-03    3.8711        .28353E-06** at limit **
   6  norm          .10055        .55487        .77626E-07   -.25763E-03
   7  norm          .10000E-03    10.369       -.48752E-06** at limit **
   8  Prefactor     .10000E-03    11.151        .19858E-06** at limit **
   9  Prefactor     .10000E-03    3.6101       -.13496E-06** at limit **
  10  norm          .10000E-03    5.5187       -.20992E-06** at limit **
  11  norm          .10000E-03    4.2413       -.38354E-06** at limit **
  12  Prefactor     6.5111        9.9239        .21359E-07    .17107E-03
  13  Prefactor     26.242        16.313        .14963E-05    .54661E-03
  14  norm          .10000E-03    1.3980       -.84379E-06** at limit **
  15  Prefactor     .10000E-03    6.2668        .22860E-06** at limit **
  16  Prefactor     2.1550        3.6401       -.24190E-06    .43787E-03
  17  Prefactor     3.1057        9.0779        .53127E-05   -.62052E-04
  18  Normalizat    1.3659        .19818        .42772E-07    .35174E-03
  19  Prefactor     .89656        .82705E-01   -.15873E-07    .46861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.36192
  Prefactor  = 11.5953
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.100547
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.51115
  Prefactor  = 26.2415
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15502
  Prefactor  = 3.10567
  Normalizat = 1.36591
  Prefactor  = 0.896562
 **********
 **   18 **HESSE 
 **********

 FCN=   9939.358     FROM HESSE     STATUS=OK           264 CALLS     1931 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3619        6.8865        .19286E-03   -1.5290    
   2  Prefactor     11.595        30.581        .11773E-03   -1.5027    
   3  norm          .10000E-03    1.9100        .13422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.4454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.8850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10055        6.3001        .13760E-02   -1.5645    
   7  norm          .10000E-03    10.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.5896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.3066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5111        9.8874        .15730E-03   -1.5198    
  13  Prefactor     26.242        16.202        .78190E-04   -1.4683    
  14  norm          .10000E-03    6.8062        .21373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1550        3.5618        .21868E-03   -1.5414    
  17  Prefactor     3.1057        9.1080        .11506E-02   -1.5355    
  18  Normalizat    1.3659        .23711        .32834E-03   -.81620    
  19  Prefactor     .89656        .97426E-01    .17347E-03   -.96261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23533e-10
Minuit parameter uncertainties:
  1  6.88777
  2  30.6222
  3  8.74283e-06
  4  1.0286e-06
  5  7.83635e-06
  6  1.59119
  7  3.93111e-06
  8  1.95144e-05
  9  4.45167e-07
  10  1.39642e-05
  11  9.29153e-06
  12  9.88989
  13  16.2046
  14  9.57406e-05
  15  1.19162e-05
  16  3.56212
  17  9.11207
  18  0.237296
  19  0.0974451
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.951e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.483e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  8.966e-01  9.745e-02  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  1.366e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 152.199 -29.156
Photon Flux Upper Limit: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/693019/likelihoodResults_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.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) = 9939.35884172
delta logL = -0.000426552624049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9939.35841516
delta logL = 8.54743120726e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5000       1.0000          .0000       10.000    
     3 'Normalizat'    1.3659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89655       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9939.358     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    627.22        .90712E-02** at limit **
   2  Index         2.5181        6.2245        .50000       -.14920E-04
   3  Normalizat    1.3659        .41269E-01    .74199E-01    .15149E-04
   4  Prefactor     .89656        .18202E-01    .44961E-01    .44565E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51814
  Normalizat = 1.3659
  Prefactor  = 0.896563
 **********
 **   18 **HESSE 
 **********

 FCN=   9939.358     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1713.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5181        5.1291        .50000       -.51942    
   3  Normalizat    1.3659        .85658E-01    .32834E-03   -.81620    
   4  Prefactor     .89656        .37831E-01    .17347E-03   -.96261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.61843e-08
Minuit parameter uncertainties:
  1  0.000609166
  2  54.8078
  3  0.0856665
  4  0.0378321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693019': 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) = 9939.35841505
delta logL = 1.162825356e-07

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  6.092e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.518e+00  5.481e+01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  9.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  8.966e-01  3.783e-02  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  1.366e+00  8.567e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.199 -29.156

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/693019/cmap_HighResolution_599097601_599356801_4FGL_J1008.7-2909_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-09-01 12:01:49.349638', job_id='693019', GAL2='0.90', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630522909.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1388' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:01:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 693019: <4FGL_J1008.7-2909_daily_bin1388> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin1388> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 11:45:44 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:45:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 11:45:47 2021
Terminated at Wed Sep  1 12:01:50 2021
Results reported at Wed Sep  1 12:01:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1388 152.199 -29.1559 599097601 599356801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1008.7-2909 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   715.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            966 sec.

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

