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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1553
RA = 152.199, Dec = -29.1559
tmin = 641865601, tmax = 642124801
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='693234', job_status='RUN', time_executed='2021-09-01 11:47:55.614502', time_epoch_executed='1630522075.61' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693234/ft1_4FGL_J1008.7-2909_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693234/ft1_4FGL_J1008.7-2909_daily_bin1553.fits outfile=/scratch/kocevski/693234/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1553.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=641865601.0 tmax=642124801.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 4.58
user 4.13
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.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/693234/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1553.fits evtable="EVENTS" outfile="/scratch/kocevski/693234/ft1_filtered_4FGL_J1008.7-2909_daily_bin1553.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.80
user 0.38
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693234/ft1_filtered_4FGL_J1008.7-2909_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/693234/ltcube_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.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/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.fits
.....................!
real 16.09
user 15.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693234/ft1_filtered_4FGL_J1008.7-2909_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/693234/ltcube_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.fits outfile=/scratch/kocevski/693234/expmap_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.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/693234/ltcube_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.fits
.....................!
real 192.53
user 186.98
sys 3.89

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/693234/ft1_filtered_4FGL_J1008.7-2909_daily_bin1553.fits scfile=/scratch/kocevski/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.fits outfile=/scratch/kocevski/693234/cmap_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693234/ft1_filtered_4FGL_J1008.7-2909_daily_bin1553.fits scfile=/scratch/kocevski/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.fits outfile=/scratch/kocevski/693234/cmap_HighResolution_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.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.63
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693234/ft1_filtered_4FGL_J1008.7-2909_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693234/Model_4FGL_J1008.7-2909_daily_bin1553.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/693234/ft1_filtered_4FGL_J1008.7-2909_daily_bin1553.fits.....................!
real 114.54
user 112.93
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/693234/ft1_filtered_4FGL_J1008.7-2909_daily_bin1553.fits', '/scratch/kocevski/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.fits', expMap='/scratch/kocevski/693234/expmap_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.fits', expCube='/scratch/kocevski/693234/ltcube_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/693234/Model_4FGL_J1008.7-2909_daily_bin1553.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/693234/ft1_filtered_4FGL_J1008.7-2909_daily_bin1553.fits
Spacecraft file(s): /scratch/kocevski/693234/ft2_4FGL_J1008.7-2909_daily_bin1553.fits
Exposure map: /scratch/kocevski/693234/expmap_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.fits
Exposure cube: /scratch/kocevski/693234/ltcube_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/693234/Model_4FGL_J1008.7-2909_daily_bin1553.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) = 11104.6065316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93553E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10811E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .60159       1.0000         .10000E-03   10000.    
     4 'norm      '    .53191E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10304E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11164E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11663E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13591E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18505E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1885       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1887       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.7101       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9289       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7334       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1551       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92944       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11104.52     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1648 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    20.662         .0000    ** at limit **
   2  Prefactor     .10001E-03    22.625         .0000    ** at limit **
   3  norm          .60491        2.2015         .0000        .89350E-03
   4  norm          .10000E-03    13.105         .0000    ** at limit **
   5  norm          .10000E-03    1.7293         .0000    ** at limit **
   6  norm          .10000E-03    .34539         .0000    ** at limit **
   7  norm          .10000E-03    9.3605         .0000    ** at limit **
   8  Prefactor     .10000E-03    9.8196         .0000    ** at limit **
   9  Prefactor     .10000E-03    3.4743         .0000    ** at limit **
  10  norm          5.1959        6.1963         .0000        .59532E-02
  11  norm          .10000E-03    1.9320         .0000    ** at limit **
  12  Prefactor     1.1930        20.210         .0000        .12955E-01
  13  Prefactor     .10000E-03    6.7173         .0000    ** at limit **
  14  norm          5.7044        2.8497         .0000        .36724E-03
  15  Prefactor     2.9138        9.2137         .0000        .44552E-03
  16  Prefactor     .10000E-03    1.0482         .0000    ** at limit **
  17  Prefactor     9.7037        7.4955         .0000       -.11515E-02
  18  Normalizat    1.1552        .16788         .0000        .61238E-04
  19  Prefactor     .92938        .74763E-01     .0000        .52729E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 0.000100009
  norm       = 0.604907
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.19593
  norm       = 0.0001
  Prefactor  = 1.193
  Prefactor  = 0.0001
  norm       = 5.70437
  Prefactor  = 2.9138
  Prefactor  = 0.0001
  Prefactor  = 9.70374
  Normalizat = 1.15525
  Prefactor  = 0.929376
 **********
 **   18 **HESSE 
 **********

 FCN=   11104.52     FROM HESSE     STATUS=OK           266 CALLS     1914 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    21.486        .41611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    22.816        .20710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .60491        8.7700        .28287E-02   -1.5552    
   4  norm          .10000E-03    13.437        .42253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7300        .13533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9990        .11924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.7141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.8664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1959        6.1870        .88241E-03   -1.5252    
  11  norm          .10000E-03    1.9406        .14296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1930        19.949        .20903E-02   -1.5490    
  13  Prefactor     .10000E-03    6.7654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.7044        2.8380        .12009E-03   -1.5230    
  15  Prefactor     2.9138        9.0405        .23736E-03   -1.5367    
  16  Prefactor     .10000E-03    1.0578        .10524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7037        7.4945        .12844E-03   -1.5085    
  18  Normalizat    1.1552        .19281        .32380E-03   -.87997    
  19  Prefactor     .92938        .87204E-01    .16357E-03   -.95122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35034e-09
Minuit parameter uncertainties:
  1  0.00108316
  2  0.000903225
  3  4.60696
  4  7.21361e-05
  5  2.11625e-07
  6  1.20578e-05
  7  0.000268072
  8  0.000167991
  9  2.59556e-06
  10  6.1878
  11  2.78529e-06
  12  9.76031
  13  2.13159e-05
  14  2.83809
  15  9.0447
  16  3.72245e-06
  17  7.49526
  18  0.192924
  19  0.0872169
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.680e-04  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:  9.294e-01  8.722e-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.155e+00  1.929e-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: 5.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/693234/likelihoodResults_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.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) = 11104.5229361
delta logL = -0.000483104269733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11104.5224529
delta logL = 9.54169081524e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4611       1.0000          .0000       10.000    
     3 'Normalizat'    1.1553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92937       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11104.52     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      245 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10266E-03    7.0804        .18142E-01** at limit **
   2  Index         2.3646        8.7608        .50000        .13306E-04
   3  Normalizat    1.1552        .36481E-02    .32380E-03    .48874E-04
   4  Prefactor     .92938        .16832E-02    .16357E-03    .74175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102663
  Index      = 2.36461
  Normalizat = 1.15525
  Prefactor  = 0.929376
 **********
 **   18 **HESSE 
 **********

 FCN=   11104.52     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10266E-03    84.734        .33558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3646        6.1165        .50000       -.55516    
   3  Normalizat    1.1552        .12620E-01    .12952E-04   -.87997    
   4  Prefactor     .92938        .58228E-02    .32714E-04   -.95122    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.52708e-09
Minuit parameter uncertainties:
  1  0.0300862
  2  430.503
  3  0.0126198
  4  0.00582283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693234': 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) = 11104.5224527
delta logL = 3.23536369251e-07

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.027e-04  3.009e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.365e+00  4.305e+02  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:  9.294e-01  5.823e-03  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.155e+00  1.262e-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/693234/cmap_HighResolution_641865601_642124801_4FGL_J1008.7-2909_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-09-01 12:01:13.334475', job_id='693234', GAL2='0.93', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630522873.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1553' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:01:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 693234: <4FGL_J1008.7-2909_daily_bin1553> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin1553> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 11:46:01 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:46:03 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:46:03 2021
Terminated at Wed Sep  1 12:01:14 2021
Results reported at Wed Sep  1 12:01:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1553 152.199 -29.1559 641865601 642124801 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 :                                   793.00 sec.
    Max Memory :                                 1168 MB
    Average Memory :                             308.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

