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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1356
RA = 152.199, Dec = -29.1559
tmin = 590803201, tmax = 591062401
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='692973', job_status='RUN', time_executed='2021-09-01 11:47:50.853842', time_epoch_executed='1630522070.85' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692973/ft1_4FGL_J1008.7-2909_daily_bin1356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692973/ft2_4FGL_J1008.7-2909_daily_bin1356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692973/ft1_4FGL_J1008.7-2909_daily_bin1356.fits outfile=/scratch/kocevski/692973/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1356.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=590803201.0 tmax=591062401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.56
user 5.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692973/ft2_4FGL_J1008.7-2909_daily_bin1356.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/692973/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1356.fits evtable="EVENTS" outfile="/scratch/kocevski/692973/ft1_filtered_4FGL_J1008.7-2909_daily_bin1356.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.52
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692973/ft1_filtered_4FGL_J1008.7-2909_daily_bin1356.fits" evtable="EVENTS" scfile=/scratch/kocevski/692973/ft2_4FGL_J1008.7-2909_daily_bin1356.fits sctable="SC_DATA" outfile=/scratch/kocevski/692973/ltcube_590803201_591062401_4FGL_J1008.7-2909_daily_bin1356.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/692973/ft2_4FGL_J1008.7-2909_daily_bin1356.fits
.....................!
real 13.54
user 13.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692973/ft1_filtered_4FGL_J1008.7-2909_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/692973/ft2_4FGL_J1008.7-2909_daily_bin1356.fits sctable="SC_DATA" expcube=/scratch/kocevski/692973/ltcube_590803201_591062401_4FGL_J1008.7-2909_daily_bin1356.fits outfile=/scratch/kocevski/692973/expmap_590803201_591062401_4FGL_J1008.7-2909_daily_bin1356.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/692973/ltcube_590803201_591062401_4FGL_J1008.7-2909_daily_bin1356.fits
.....................!
real 191.86
user 186.78
sys 4.12

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/692973/ft1_filtered_4FGL_J1008.7-2909_daily_bin1356.fits scfile=/scratch/kocevski/692973/ft2_4FGL_J1008.7-2909_daily_bin1356.fits outfile=/scratch/kocevski/692973/cmap_590803201_591062401_4FGL_J1008.7-2909_daily_bin1356.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692973/ft1_filtered_4FGL_J1008.7-2909_daily_bin1356.fits scfile=/scratch/kocevski/692973/ft2_4FGL_J1008.7-2909_daily_bin1356.fits outfile=/scratch/kocevski/692973/cmap_HighResolution_590803201_591062401_4FGL_J1008.7-2909_daily_bin1356.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692973/ft1_filtered_4FGL_J1008.7-2909_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/692973/ft2_4FGL_J1008.7-2909_daily_bin1356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692973/Model_4FGL_J1008.7-2909_daily_bin1356.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/692973/ft1_filtered_4FGL_J1008.7-2909_daily_bin1356.fits.....................!
real 100.99
user 99.53
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9687       1.0000         .10000E-03   10000.    
     4 'norm      '    30.429       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6065       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4021       1.0000         .10000E-03   10000.    
     7 'norm      '    .10646       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9266       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5303       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82606       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=   10026.00     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     1863 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7002        .18142E-02** at limit **
   2  Prefactor     .10000E-03    8.4759        .18142E-02** at limit **
   3  norm          6.9687        5.0802        .75986E-03    .91265E-04
   4  norm          30.429        14.984        .72634E-04   -.42574E-04
   5  norm          5.6066        5.7053        .16966E-03   -.65667E-05
   6  norm          2.4021        1.4622        .89599E-04   -.22839E-05
   7  norm          .11169        5.1718        .66160E-01    .47278E-03
   8  Prefactor     .10000E-03    8.6627        .18142E-02** at limit **
   9  Prefactor     .10000E-03    3.6587        .18142E-02** at limit **
  10  norm          .10000E-03    6.4825        .18142E-02** at limit **
  11  norm          .10000E-03    4.3303        .18142E-02** at limit **
  12  Prefactor     8.1626        9.4831        .14032E-03   -.11018E-04
  13  Prefactor     .10000E-03    5.9469        .18142E-02** at limit **
  14  norm          2.9266        2.6447        .14837E-03    .44137E-04
  15  Prefactor     .10000E-03    4.5193        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.2998        .11036E-02** at limit **
  17  Prefactor     .10000E-03    3.9145        .18142E-02** at limit **
  18  Normalizat    1.5304        .22493        .31196E-03   -.43291E-03
  19  Prefactor     .82605        .98417E-01    .18154E-03   -.74447E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.96871
  norm       = 30.4286
  norm       = 5.60655
  norm       = 2.40207
  norm       = 0.111689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.16255
  Prefactor  = 0.0001
  norm       = 2.92661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.53037
  Prefactor  = 0.826051
 **********
 **   18 **HESSE 
 **********

 FCN=   10026.00     FROM HESSE     STATUS=OK           260 CALLS     2123 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.4763        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9687        5.0799        .30395E-04   -1.5180    
   4  norm          30.429        14.984        .29054E-05   -1.4604    
   5  norm          5.6066        5.7053        .67865E-05   -1.5234    
   6  norm          2.4021        1.4622        .35840E-05   -1.5398    
   7  norm          .11169        4.8228        .70185E-01   -1.5641    
   8  Prefactor     .10000E-03    8.6634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.4858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.3324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1626        9.4826        .56130E-05   -1.5136    
  13  Prefactor     .10000E-03    5.9475        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9266        2.6445        .59346E-05   -1.5366    
  15  Prefactor     .10000E-03    4.5197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3001        .22071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5304        .22508        .62393E-04   -.76929    
  19  Prefactor     .82605        .98476E-01    .36308E-04   -.98775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40099e-10
Minuit parameter uncertainties:
  1  1.14547e-05
  2  1.19239e-05
  3  5.08018
  4  14.9856
  5  5.70581
  6  1.46223
  7  1.46733
  8  1.81336e-05
  9  4.39288e-06
  10  1.62857e-06
  11  3.92377e-07
  12  9.48429
  13  1.74589e-05
  14  2.64461
  15  1.21758e-05
  16  3.80682e-06
  17  1.96768e-05
  18  0.225229
  19  0.098497
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.813e-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.261e-01  9.850e-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.530e+00  2.252e-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: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692973/likelihoodResults_590803201_591062401_4FGL_J1008.7-2909_daily_bin1356.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) = 10026.0023267
delta logL = -0.000549989401406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10026.0017767
delta logL = -3.09410097543e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4870       1.0000          .0000       10.000    
     3 'Normalizat'    1.5304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82605       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=   10026.00     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1114.2        .90712E-02** at limit **
   2  Index         2.4912        7.3521        .50000       -.45192E-05
   3  Normalizat    1.5304        .72549E-01    .70514E-01   -.35262E-04
   4  Prefactor     .82605        .32312E-01    .44055E-01   -.32850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49122
  Normalizat = 1.53037
  Prefactor  = 0.826051
 **********
 **   18 **HESSE 
 **********

 FCN=   10026.00     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1915.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4912        6.8042        .50000       -.52563    
   3  Normalizat    1.5304        .16761        .31196E-03   -.76929    
   4  Prefactor     .82605        .74869E-01    .18154E-03   -.98775    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.1868e-09
Minuit parameter uncertainties:
  1  0.000456933
  2  66.6234
  3  0.167673
  4  0.0748786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692973': 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) = 10026.0017767
delta logL = 8.56380211189e-09

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.569e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.491e+00  6.662e+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.261e-01  7.488e-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.530e+00  1.677e-01  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/692973/cmap_HighResolution_590803201_591062401_4FGL_J1008.7-2909_daily_bin1356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-01 12:00:39.022484', job_id='692973', GAL2='0.83', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630522839.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='8.56e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1356' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:00:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 692973: <4FGL_J1008.7-2909_daily_bin1356> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin1356> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 11:45:41 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:45:43 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:43 2021
Terminated at Wed Sep  1 12:00:39 2021
Results reported at Wed Sep  1 12:00:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1356 152.199 -29.1559 590803201 591062401 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 :                                   756.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

