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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin626
RA = 179.751, Dec = 9.6603
tmin = 401587201, tmax = 401846401
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='206982', job_status='RUN', time_executed='2021-09-04 18:01:11.075873', time_epoch_executed='1630803671.08' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206982

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206982/ft1_4FGL_J1159.0+0939_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206982/ft1_4FGL_J1159.0+0939_daily_bin626.fits outfile=/scratch/kocevski/206982/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin626.fits ra=179.751 dec=9.6603 rad=12.0 tmin=401587201.0 tmax=401846401.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.23
user 3.99
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.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/206982/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin626.fits evtable="EVENTS" outfile="/scratch/kocevski/206982/ft1_filtered_4FGL_J1159.0+0939_daily_bin626.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.62
user 0.33
sys 0.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206982/ft1_filtered_4FGL_J1159.0+0939_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/206982/ltcube_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.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/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits
.....................!
real 12.68
user 12.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206982/ft1_filtered_4FGL_J1159.0+0939_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/206982/ltcube_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.fits outfile=/scratch/kocevski/206982/expmap_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.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/206982/ltcube_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.fits
.....................!
real 191.68
user 185.10
sys 5.61

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

Setting source of interest to:
4FGL J1159.0+0939 @ 179.751 9.6603

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/206982/ft1_filtered_4FGL_J1159.0+0939_daily_bin626.fits scfile=/scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits outfile=/scratch/kocevski/206982/cmap_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.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=179.751 yref=9.6603 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.69
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206982/ft1_filtered_4FGL_J1159.0+0939_daily_bin626.fits scfile=/scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits outfile=/scratch/kocevski/206982/cmap_HighResolution_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.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=179.751 yref=9.6603 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.57
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206982/ft1_filtered_4FGL_J1159.0+0939_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206982/Model_4FGL_J1159.0+0939_daily_bin626.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/206982/ft1_filtered_4FGL_J1159.0+0939_daily_bin626.fits.....................!
real 57.32
user 55.58
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/206982/ft1_filtered_4FGL_J1159.0+0939_daily_bin626.fits', '/scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits', expMap='/scratch/kocevski/206982/expmap_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.fits', expCube='/scratch/kocevski/206982/ltcube_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/206982/Model_4FGL_J1159.0+0939_daily_bin626.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.0+0939'

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.838e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/206982/ft1_filtered_4FGL_J1159.0+0939_daily_bin626.fits
Spacecraft file(s): /scratch/kocevski/206982/ft2_4FGL_J1159.0+0939_daily_bin626.fits
Exposure map: /scratch/kocevski/206982/expmap_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.fits
Exposure cube: /scratch/kocevski/206982/ltcube_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/206982/Model_4FGL_J1159.0+0939_daily_bin626.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) = 6013.29550652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6582       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0145       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.112       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    146.73       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6139       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44978       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22180       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9856       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1218       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.6608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    83.838       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3390       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23325E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.7546       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98833       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2803       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6013.258     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     2897 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.419        3.8122        .67191E-06    .10292E-02
   2  Prefactor     .10000E-03    70.955       -.75342E-05** at limit **
   3  Prefactor     4.6574        3.1926       -.12148E-07    .24443E-04
   4  Prefactor     .10000E-03    14.605       -.32445E-06** at limit **
   5  Prefactor     5.9960        3.2497        .65725E-06   -.10855E-02
   6  Prefactor     .10001E-03    160.27        .11081E-04** at limit **
   7  Prefactor     .10000E-03    5.2630       -.59812E-06** at limit **
   8  Prefactor     12.111        10.337       -.70557E-06   -.15505E-03
   9  Prefactor     .10000E-03    5.7307       -.48057E-06** at limit **
  10  Prefactor     .10000E-03    3.7414       -.18946E-06** at limit **
  11  Prefactor     .10000E-03    59.002       -.37665E-05** at limit **
  12  Prefactor     7.2132        3.6826       -.39833E-06    .58690E-03
  13  Prefactor     146.75        3.6234       -.86971E-07    .60062E-02
  14  Prefactor     3.6144        3.9260       -.82390E-06   -.10675E-03
  15  Prefactor     .45345        5.5605        .10297E-05    .42692E-04
  16  Prefactor     .10817E-03    7259.3        .64148E-04** at limit **
  17  Prefactor     8.9605        14.889        .44158E-05    .46421E-04
  18  norm          3.1347        4.1836        .18080E-05   -.15024E-03
  19  Prefactor     .10000E-03    20.798        .88394E-06** at limit **
  20  norm          8.6251        6.0048        .99877E-06   -.10714E-02
  21  Prefactor     83.819        3.3075        .15110E-06   -.29629E-03
  22  norm          2.3388        .81535       -.55792E-07    .12798E-03
  23  Prefactor     .10000E-03    4.1401        .12248E-06** at limit **
  24  Prefactor     .10000E-03    97.425        .38380E-05** at limit **
  25  norm          6.7538        2.5383        .40091E-07    .35580E-04
  26  Normalizat    .98881        .25270        .16314E-05    .10299E-04
  27  Prefactor     1.2801        .23478        .14056E-06    .15141E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.4189
  Prefactor  = 0.0001
  Prefactor  = 4.65736
  Prefactor  = 0.0001
  Prefactor  = 5.99597
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 12.1107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.21324
  Prefactor  = 146.747
  Prefactor  = 3.61445
  Prefactor  = 0.453453
  Prefactor  = 0.000108168
  Prefactor  = 8.96053
  norm       = 3.13468
  Prefactor  = 0.0001
  norm       = 8.62508
  Prefactor  = 83.8187
  norm       = 2.33876
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 6.75384
  Normalizat = 0.988814
  Prefactor  = 1.28005
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.258     FROM HESSE     STATUS=OK           566 CALLS     3463 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.419        14.317        .21147E-02   -1.4761    
   2  Prefactor     .10000E-03    72.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6574        3.1954        .46617E-02   -1.5276    
   4  Prefactor     .10000E-03    14.258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9960        53.142        .40931E-02   -1.5218    
   6  Prefactor     .10001E-03    161.64        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.111        10.810        .28776E-02   -1.5012    
   9  Prefactor     .10000E-03    5.7238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6232        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.052        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2132        39.930        .37363E-02   -1.5171    
  13  Prefactor     146.75        48.499        .83168E-03   -1.3279    
  14  Prefactor     3.6144        4.2250        .53135E-02   -1.5328    
  15  Prefactor     .45345        3.4071        .38598E-01   -1.5573    
  16  Prefactor     .10817E-03    37.402        .13208       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9605        15.864        .33427E-02   -1.5109    
  18  norm          3.1347        4.8285        .57368E-02   -1.5354    
  19  Prefactor     .10000E-03    20.788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.6251        75.356        .34052E-02   -1.5121    
  21  Prefactor     83.819        108.96        .10968E-02   -1.3874    
  22  norm          2.3388        .84701        .67023E-02   -1.5402    
  23  Prefactor     .10000E-03    4.1341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.650        .11502       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.7538        2.5434        .38597E-02   -1.5188    
  26  Normalizat    .98881        .21915        .69024E-01   -.93406    
  27  Prefactor     1.2801        .19960        .58475E-01   -.83902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35002e-07
Minuit parameter uncertainties:
  1  14.3196
  2  0.000218527
  3  3.19548
  4  6.54855e-06
  5  35.7431
  6  0.00250211
  7  1.38171e-05
  8  10.8118
  9  1.18729e-05
  10  2.95053e-06
  11  0.000522103
  12  33.9773
  13  48.5121
  14  4.22539
  15  2.48586
  16  0.0349787
  17  15.871
  18  4.82908
  19  3.18052e-05
  20  51.0744
  21  109.223
  22  0.847013
  23  1.83862e-06
  24  0.000361954
  25  2.54345
  26  0.219348
  27  0.199719
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.382e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.280e+00  1.997e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.888e-01  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206982/likelihoodResults_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.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) = 6013.25888312
delta logL = -0.000902661376131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6013.25798046
delta logL = 2.68846633844e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1262       1.0000          .0000       10.000    
     3 'Normalizat'    .98882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+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=   6013.258     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    98.782        .17349E-02** at limit **
   2  Index         2.0835        8.9400        .50000        .74319E-05
   3  Normalizat    .98881        .23506E-01    .30534E-03   -.14372E-04
   4  Prefactor     1.2801        .22412E-01    .25858E-03   -.96726E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100356
  Index      = 2.08354
  Normalizat = 0.988813
  Prefactor  = 1.28005
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.258     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10036E-03    481.59        .34699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0835        8.5975        .50000       -.62278    
   3  Normalizat    .98881        .57957E-01    .12214E-04   -.93406    
   4  Prefactor     1.2801        .55148E-01    .10343E-04   -.83902    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.13782e-08
Minuit parameter uncertainties:
  1  0.0263997
  2  1396.79
  3  0.0579609
  4  0.0551506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206982': 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) = 6013.25798039
delta logL = 6.66695996188e-08

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.004e-04  2.640e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.084e+00  1.397e+03  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.280e+00  5.515e-02  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.888e-01  5.796e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.751 9.660

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/206982/cmap_HighResolution_401587201_401846401_4FGL_J1159.0+0939_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-04 18:14:17.084449', job_id='206982', GAL2='1.28', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630804457.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='6.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='626' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:14:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 206982: <4FGL_J1159.0+0939_daily_bin626> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin626> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 18:00:53 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:00:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 18:00:54 2021
Terminated at Sat Sep  4 18:14:17 2021
Results reported at Sat Sep  4 18:14:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin626 179.751 9.6603 401587201 401846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.0+0939 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   783.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            804 sec.

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

