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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1527
RA = 152.199, Dec = -29.1559
tmin = 635126401, tmax = 635385601
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='693208', job_status='RUN', time_executed='2021-09-01 11:47:27.542256', time_epoch_executed='1630522047.54' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693208/ft1_4FGL_J1008.7-2909_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693208/ft2_4FGL_J1008.7-2909_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693208/ft1_4FGL_J1008.7-2909_daily_bin1527.fits outfile=/scratch/kocevski/693208/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1527.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=635126401.0 tmax=635385601.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.04
user 2.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693208/ft1_filtered_4FGL_J1008.7-2909_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/693208/ft2_4FGL_J1008.7-2909_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/693208/ltcube_635126401_635385601_4FGL_J1008.7-2909_daily_bin1527.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/693208/ft2_4FGL_J1008.7-2909_daily_bin1527.fits
.....................!
real 16.29
user 15.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693208/ft1_filtered_4FGL_J1008.7-2909_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/693208/ft2_4FGL_J1008.7-2909_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/693208/ltcube_635126401_635385601_4FGL_J1008.7-2909_daily_bin1527.fits outfile=/scratch/kocevski/693208/expmap_635126401_635385601_4FGL_J1008.7-2909_daily_bin1527.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/693208/ltcube_635126401_635385601_4FGL_J1008.7-2909_daily_bin1527.fits
.....................!
real 194.13
user 186.62
sys 4.54

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/693208/ft1_filtered_4FGL_J1008.7-2909_daily_bin1527.fits scfile=/scratch/kocevski/693208/ft2_4FGL_J1008.7-2909_daily_bin1527.fits outfile=/scratch/kocevski/693208/cmap_635126401_635385601_4FGL_J1008.7-2909_daily_bin1527.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693208/ft1_filtered_4FGL_J1008.7-2909_daily_bin1527.fits scfile=/scratch/kocevski/693208/ft2_4FGL_J1008.7-2909_daily_bin1527.fits outfile=/scratch/kocevski/693208/cmap_HighResolution_635126401_635385601_4FGL_J1008.7-2909_daily_bin1527.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693208/ft1_filtered_4FGL_J1008.7-2909_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/693208/ft2_4FGL_J1008.7-2909_daily_bin1527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693208/Model_4FGL_J1008.7-2909_daily_bin1527.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/693208/ft1_filtered_4FGL_J1008.7-2909_daily_bin1527.fits.....................!
real 81.78
user 80.22
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.825       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    22.714       1.0000         .10000E-03   10000.    
     5 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.5074       1.0000         .10000E-03   10000.    
     7 'norm      '    15.575       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34250E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6543       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2490       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74540E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .84443       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.597       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91905       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0761       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7572.739     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     1630 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.822        2.0941        .18031E-05    .12334E-02
   2  Prefactor     .10000E-03    21.196       -.14440E-04** at limit **
   3  norm          .10000E-03    2.0360        .43887E-06** at limit **
   4  norm          22.722        3.1907       -.28906E-05    .26156E-02
   5  norm          .10000E-03    4.2037        .12559E-05** at limit **
   6  norm          5.5071        2.6576        .28530E-06   -.69753E-04
   7  norm          15.585        6.9308       -.61762E-05   -.85800E-02
   8  Prefactor     .19496E-03    22.020        .28373E-04** at limit **
   9  Prefactor     .10000E-03    5.4078       -.25446E-05** at limit **
  10  norm          3.6504        5.9272       -.14598E-04   -.10807E-02
  11  norm          .10000E-03    2.9055        .11660E-05** at limit **
  12  Prefactor     1.2282        34.715        .49565E-04   -.22011E-03
  13  Prefactor     .10975E-03    263.86        .82647E-05** at limit **
  14  norm          3.3778        3.5982       -.31391E-05   -.36847E-03
  15  Prefactor     .10000E-03    12.528        .72198E-05** at limit **
  16  Prefactor     .83934        6.5249        .12962E-04    .97691E-04
  17  Prefactor     12.599        1.2705       -.12198E-06   -.14196E-02
  18  Normalizat    .91914        .28953       -.43931E-05   -.72092E-04
  19  Prefactor     1.0760        .11844        .99739E-06   -.19374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8222
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 22.7219
  norm       = 0.0001
  norm       = 5.50707
  norm       = 15.5846
  Prefactor  = 0.000194959
  Prefactor  = 0.0001
  norm       = 3.6504
  norm       = 0.0001
  Prefactor  = 1.22825
  Prefactor  = 0.000109752
  norm       = 3.37783
  Prefactor  = 0.0001
  Prefactor  = 0.839338
  Prefactor  = 12.5986
  Normalizat = 0.919143
  Prefactor  = 1.07601
 **********
 **   18 **HESSE 
 **********

 FCN=   7572.739     FROM HESSE     STATUS=OK           326 CALLS     1956 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.822        13.261        .26006E-02   -1.4938    
   2  Prefactor     .10000E-03    21.162        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          22.722        20.276        .21011E-02   -1.4754    
   5  norm          .10000E-03    4.1974        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.5071        2.6586        .42802E-02   -1.5239    
   7  norm          15.585        12.375        .25371E-02   -1.4918    
   8  Prefactor     .19496E-03    27.120        .12858       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6504        5.9580        .52829E-02   -1.5326    
  11  norm          .10000E-03    2.8994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2282        59.636        .10008E-01   -1.5486    
  13  Prefactor     .10975E-03    25.989        .11070       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3778        3.8509        .54990E-02   -1.5340    
  15  Prefactor     .10000E-03    12.534        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .83934        5.2659        .49798E-01   -1.5525    
  17  Prefactor     12.599        11.195        .28215E-02   -1.4998    
  18  Normalizat    .91914        .27133        .95729E-01   -.95791    
  19  Prefactor     1.0760        .10541        .38576E-01   -.90237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49669e-07
Minuit parameter uncertainties:
  1  13.2637
  2  0.000379328
  3  2.83846e-06
  4  20.2819
  5  5.57837e-06
  6  2.6587
  7  12.3766
  8  0.10154
  9  1.73479e-05
  10  5.95894
  11  4.93211e-06
  12  17.1344
  13  0.0318534
  14  3.85118
  15  6.84863e-05
  16  4.20498
  17  11.1971
  18  0.271737
  19  0.105434
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.950e-04  1.015e-01  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:  1.076e+00  1.054e-01  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:  9.191e-01  2.717e-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: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/693208/likelihoodResults_635126401_635385601_4FGL_J1008.7-2909_daily_bin1527.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) = 7572.73927575
delta logL = -2.10155221794e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7572.7392545
delta logL = 2.41408088186e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5130       1.0000          .0000       10.000    
     3 'Normalizat'    .91914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0760       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=   7572.739     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      266 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    18.142        .11463    ** at limit **
   2  Index         2.6427        3.4286        .50000       -.34985E-05
   3  Normalizat    .91914        .57054E-02    .95729E-01    .78343E-04
   4  Prefactor     1.0760        .24113E-02    .38579E-01    .13550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100382
  Index      = 2.64269
  Normalizat = 0.919143
  Prefactor  = 1.07601
 **********
 **   18 **HESSE 
 **********

 FCN=   7572.739     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      307 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    20.364        .10879       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6427        3.4682        .50000       -.49095    
   3  Normalizat    .91914        .57797E-02    .42409E-03   -.95791    
   4  Prefactor     1.0760        .24497E-02    .16602E-03   -.90237    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11067e-12
Minuit parameter uncertainties:
  1  0.00557902
  2  3.99129
  3  0.00577974
  4  0.00244967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693208': 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) = 7572.73925438
delta logL = 3.57820681529e-07

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.004e-04  5.579e-03  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.643e+00  3.991e+00  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:  1.076e+00  2.450e-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:  9.191e-01  5.780e-03  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/693208/cmap_HighResolution_635126401_635385601_4FGL_J1008.7-2909_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-01 11:58:07.686347', job_id='693208', GAL2='1.08', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630522687.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1527' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:58:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 693208: <4FGL_J1008.7-2909_daily_bin1527> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1527 152.199 -29.1559 635126401 635385601 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 :                                   626.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            731 sec.

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

