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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin851
RA = 179.751, Dec = 9.6603
tmin = 459907201, tmax = 460166401
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='207286', job_status='RUN', time_executed='2021-09-04 18:04:33.601738', time_epoch_executed='1630803873.6' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='851'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207286/ft1_4FGL_J1159.0+0939_daily_bin851.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207286/ft2_4FGL_J1159.0+0939_daily_bin851.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207286/ft1_4FGL_J1159.0+0939_daily_bin851.fits outfile=/scratch/kocevski/207286/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin851.fits ra=179.751 dec=9.6603 rad=12.0 tmin=459907201.0 tmax=460166401.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.35
user 3.15
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207286/ft2_4FGL_J1159.0+0939_daily_bin851.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/207286/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin851.fits evtable="EVENTS" outfile="/scratch/kocevski/207286/ft1_filtered_4FGL_J1159.0+0939_daily_bin851.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207286/ft1_filtered_4FGL_J1159.0+0939_daily_bin851.fits" evtable="EVENTS" scfile=/scratch/kocevski/207286/ft2_4FGL_J1159.0+0939_daily_bin851.fits sctable="SC_DATA" outfile=/scratch/kocevski/207286/ltcube_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.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/207286/ft2_4FGL_J1159.0+0939_daily_bin851.fits
.....................!
real 11.88
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207286/ft1_filtered_4FGL_J1159.0+0939_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/207286/ft2_4FGL_J1159.0+0939_daily_bin851.fits sctable="SC_DATA" expcube=/scratch/kocevski/207286/ltcube_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.fits outfile=/scratch/kocevski/207286/expmap_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.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/207286/ltcube_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.fits
.....................!
real 190.08
user 184.80
sys 4.64

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/207286/ft1_filtered_4FGL_J1159.0+0939_daily_bin851.fits scfile=/scratch/kocevski/207286/ft2_4FGL_J1159.0+0939_daily_bin851.fits outfile=/scratch/kocevski/207286/cmap_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207286/ft1_filtered_4FGL_J1159.0+0939_daily_bin851.fits scfile=/scratch/kocevski/207286/ft2_4FGL_J1159.0+0939_daily_bin851.fits outfile=/scratch/kocevski/207286/cmap_HighResolution_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.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.56
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/207286/ft1_filtered_4FGL_J1159.0+0939_daily_bin851.fits', '/scratch/kocevski/207286/ft2_4FGL_J1159.0+0939_daily_bin851.fits', expMap='/scratch/kocevski/207286/expmap_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.fits', expCube='/scratch/kocevski/207286/ltcube_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/207286/Model_4FGL_J1159.0+0939_daily_bin851.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/207286/ft1_filtered_4FGL_J1159.0+0939_daily_bin851.fits
Spacecraft file(s): /scratch/kocevski/207286/ft2_4FGL_J1159.0+0939_daily_bin851.fits
Exposure map: /scratch/kocevski/207286/expmap_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.fits
Exposure cube: /scratch/kocevski/207286/ltcube_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/207286/Model_4FGL_J1159.0+0939_daily_bin851.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) = 5733.38200263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.939       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20302E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3593       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4995       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4544       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1175       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.431       1.0000         .10000E-03   10000.    
    22 'norm      '    1.7308       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1168       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3379       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0444       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1349       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=   5733.367     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     3211 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.807        .17372E-04** at limit **
   2  Prefactor     54.975        9.3264       -.12054E-05    .86132E-02
   3  Prefactor     .10000E-03    .85248        .17190E-06** at limit **
   4  Prefactor     .10003E-03    13.360       -.20337E-04** at limit **
   5  Prefactor     .10000E-03    12.308       -.95139E-05** at limit **
   6  Prefactor     .11063E-03    1238.7       -.43446E-04** at limit **
   7  Prefactor     .10000E-03    9.7597        .15690E-05** at limit **
   8  Prefactor     .10000E-03    4.9736        .65912E-07** at limit **
   9  Prefactor     11.731        1.0141       -.37696E-07    .11001E-04
  10  Prefactor     4.3606        4.8715        .12954E-06    .22008E-04
  11  Prefactor     .10025E-03    49.844       -.23039E-04** at limit **
  12  Prefactor     32.058        9.0467       -.23984E-05    .83126E-02
  13  Prefactor     .10029E-03    53.611        .22188E-04** at limit **
  14  Prefactor     .10000E-03    2.0998        .11549E-06** at limit **
  15  Prefactor     2.5001        2.9970       -.13037E-06   -.50067E-03
  16  Prefactor     .10001E-03    10.436       -.14751E-04** at limit **
  17  Prefactor     7.4631        2.2319       -.42035E-06    .13941E-02
  18  norm          1.1188        4.4081        .86064E-06    .24044E-03
  19  Prefactor     .10000E-03    5.5848        .15874E-05** at limit **
  20  norm          .10000E-03    26.698        .27894E-05** at limit **
  21  Prefactor     26.287        35.667       -.63686E-05    .48978E-02
  22  norm          1.7305        .78525       -.38755E-07   -.72338E-03
  23  Prefactor     4.1162        1.0224       -.22924E-06    .78650E-04
  24  Prefactor     .10004E-03    12.757        .21094E-04** at limit **
  25  norm          1.3378        1.3146        .30487E-07    .27676E-03
  26  Normalizat    1.0441        .24255       -.15896E-05   -.13161E-03
  27  Prefactor     1.1351        .21448        .82736E-06   -.39746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 54.9753
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 0.000100001
  Prefactor  = 0.000110631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7314
  Prefactor  = 4.3606
  Prefactor  = 0.000100252
  Prefactor  = 32.058
  Prefactor  = 0.000100286
  Prefactor  = 0.0001
  Prefactor  = 2.50006
  Prefactor  = 0.000100007
  Prefactor  = 7.46309
  norm       = 1.1188
  Prefactor  = 0.000100003
  norm       = 0.000100001
  Prefactor  = 26.2875
  norm       = 1.73052
  Prefactor  = 4.11622
  Prefactor  = 0.000100039
  norm       = 1.33776
  Normalizat = 1.04412
  Prefactor  = 1.1351
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.367     FROM HESSE     STATUS=OK           542 CALLS     3753 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.673        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.975        43.251        .13529E-02   -1.4224    
   3  Prefactor     .10000E-03    .84594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    16.013        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11063E-03    1418.9        .91241E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6533        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.731        17.031        .29238E-02   -1.5023    
  10  Prefactor     4.3606        4.8879        .48229E-02   -1.5290    
  11  Prefactor     .10025E-03    50.684        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.058        38.226        .17702E-02   -1.4575    
  13  Prefactor     .10029E-03    53.586        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5001        3.0213        .64624E-02   -1.5392    
  16  Prefactor     .10001E-03    10.447        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.4631        12.808        .36723E-02   -1.5162    
  18  norm          1.1188        4.8618        .11126E-01   -1.5496    
  19  Prefactor     .10000E-03    15.808        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    26.710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.287        175.48        .19480E-02   -1.4682    
  22  norm          1.7305        .82064        .79775E-02   -1.5445    
  23  Prefactor     4.1162        9.7122        .49670E-02   -1.5302    
  24  Prefactor     .10004E-03    15.280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3378        1.3241        .94781E-02   -1.5477    
  26  Normalizat    1.0441        .20986        .63376E-01   -.91567    
  27  Prefactor     1.1351        .18145        .55301E-01   -.88353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36932e-06
Minuit parameter uncertainties:
  1  0.000309795
  2  43.2753
  3  1.10205e-05
  4  0.00130801
  5  0.000201786
  6  0.25185
  7  1.6106e-05
  8  1.0522e-05
  9  17.0381
  10  4.88836
  11  0.00715652
  12  38.2551
  13  0.00783754
  14  1.73596e-06
  15  3.02151
  16  0.000550877
  17  12.8122
  18  4.66493
  19  0.000416658
  20  0.000344428
  21  136.418
  22  0.820642
  23  9.71596
  24  0.00154131
  25  1.32416
  26  0.210029
  27  0.181546
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.611e-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.135e+00  1.815e-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:  1.044e+00  2.100e-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: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207286/likelihoodResults_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.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) = 5733.36757527
delta logL = -0.000488371591928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5733.3670874
delta logL = -5.07663571625e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1429       1.0000          .0000       10.000    
     3 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1352       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=   5733.367     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      245 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    91.317        .18142E-02** at limit **
   2  Index         2.1762        5.3330        .50000       -.79218E-05
   3  Normalizat    1.0441        .15780E-01    .28032E-03    .20610E-03
   4  Prefactor     1.1351        .14356E-01    .24452E-03    .20471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100416
  Index      = 2.17618
  Normalizat = 1.04412
  Prefactor  = 1.13509
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10042E-03    471.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1762        6.0691        .50000       -.60015    
   3  Normalizat    1.0441        .37774E-01    .11213E-04   -.91567    
   4  Prefactor     1.1351        .34356E-01    .48904E-04   -.88353    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.55257e-09
Minuit parameter uncertainties:
  1  0.0282296
  2  709.923
  3  0.0377753
  4  0.0343564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207286': 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) = 5733.36708683
delta logL = 6.92980393069e-08

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.004e-04  2.823e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.176e+00  7.099e+02  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.135e+00  3.436e-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:  1.044e+00  3.778e-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/207286/cmap_HighResolution_459907201_460166401_4FGL_J1159.0+0939_daily_bin851.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2021-09-04 18:16:56.398372', job_id='207286', GAL2='1.14', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630804616.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.93e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='851' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:16:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 207286: <4FGL_J1159.0+0939_daily_bin851> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin851> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 18:01:16 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:01:17 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:01:17 2021
Terminated at Sat Sep  4 18:16:57 2021
Results reported at Sat Sep  4 18:16:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin851 179.751 9.6603 459907201 460166401 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 :                                   742.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

