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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin489
RA = 179.751, Dec = 9.6603
tmin = 366076801, tmax = 366336001
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='205211', job_status='RUN', time_executed='2021-09-04 17:58:50.384678', time_epoch_executed='1630803530.38' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205211

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205211/ft1_4FGL_J1159.0+0939_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205211/ft2_4FGL_J1159.0+0939_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205211/ft1_4FGL_J1159.0+0939_daily_bin489.fits outfile=/scratch/kocevski/205211/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin489.fits ra=179.751 dec=9.6603 rad=12.0 tmin=366076801.0 tmax=366336001.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.36
user 5.05
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205211/ft1_filtered_4FGL_J1159.0+0939_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/205211/ft2_4FGL_J1159.0+0939_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/205211/ltcube_366076801_366336001_4FGL_J1159.0+0939_daily_bin489.fits outfile=/scratch/kocevski/205211/expmap_366076801_366336001_4FGL_J1159.0+0939_daily_bin489.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/205211/ltcube_366076801_366336001_4FGL_J1159.0+0939_daily_bin489.fits
.....................!
real 193.43
user 186.80
sys 4.37

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/205211/ft1_filtered_4FGL_J1159.0+0939_daily_bin489.fits scfile=/scratch/kocevski/205211/ft2_4FGL_J1159.0+0939_daily_bin489.fits outfile=/scratch/kocevski/205211/cmap_366076801_366336001_4FGL_J1159.0+0939_daily_bin489.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.66
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205211/ft1_filtered_4FGL_J1159.0+0939_daily_bin489.fits scfile=/scratch/kocevski/205211/ft2_4FGL_J1159.0+0939_daily_bin489.fits outfile=/scratch/kocevski/205211/cmap_HighResolution_366076801_366336001_4FGL_J1159.0+0939_daily_bin489.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.58
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5609       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3562       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12092E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7351       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13379E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.194       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13726E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2602       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.991       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3529       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.214       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5363       1.0000         .10000E-03   10000.    
    25 'norm      '    5.4036       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98025       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.

 FCN=   5980.519     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     2859 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5608        11.125        .89418E-07    .69981E-05
   2  Prefactor     .10000E-03    45.488        .93303E-06** at limit **
   3  Prefactor     4.3562        2.5122       -.41429E-08    .33251E-04
   4  Prefactor     .10000E-03    3.7644       -.98654E-07** at limit **
   5  Prefactor     .10000E-03    12.564        .49940E-06** at limit **
   6  Prefactor     .10000E-03    53.422       -.14889E-05** at limit **
   7  Prefactor     .10000E-03    20.583        .79415E-06** at limit **
   8  Prefactor     2.7322        10.581        .15792E-05    .84072E-04
   9  Prefactor     .10000E-03    18.606        .23472E-05** at limit **
  10  Prefactor     .10000E-03    1.8035       -.36220E-06** at limit **
  11  Prefactor     31.364        94.960       -.11785E-04   -.28917E-04
  12  Prefactor     .10000E-03    30.316        .17963E-05** at limit **
  13  Prefactor     .10000E-03    51.940       -.51349E-06** at limit **
  14  Prefactor     .10000E-03    .59427       -.11453E-07** at limit **
  15  Prefactor     1.2605        2.4591        .30842E-07    .49762E-04
  16  Prefactor     .10000E-03    22.810       -.11326E-05** at limit **
  17  Prefactor     .10010E-03    10.732       -.20016E-05** at limit **
  18  norm          20.991        5.7498        .49173E-07    .32462E-03
  19  Prefactor     .10000E-03    14.591        .55601E-06** at limit **
  20  norm          .10000E-03    13.653       -.79060E-06** at limit **
  21  Prefactor     .10000E-03    150.96        .81481E-06** at limit **
  22  norm          1.3529        .70307       -.12841E-07    .88866E-03
  23  Prefactor     20.220        13.563        .34572E-07    .14204E-04
  24  Prefactor     3.5082        54.571        .33452E-06    .18332E-05
  25  norm          5.4036        2.0491       -.93377E-08    .79223E-04
  26  Normalizat    1.0212        .21820       -.19495E-05    .17179E-03
  27  Prefactor     .98034        .18228        .23734E-05    .12076E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.56077
  Prefactor  = 0.0001
  Prefactor  = 4.35624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.73217
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 31.3637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26054
  Prefactor  = 0.0001
  Prefactor  = 0.000100099
  norm       = 20.9908
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3529
  Prefactor  = 20.2204
  Prefactor  = 3.50816
  norm       = 5.40359
  Normalizat = 1.02121
  Prefactor  = 0.980335
 **********
 **   18 **HESSE 
 **********

 FCN=   5980.519     FROM HESSE     STATUS=OK           488 CALLS     3347 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5608        11.129        .64802E-03   -1.5089    
   2  Prefactor     .10000E-03    45.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3562        2.5120        .90224E-04   -1.5291    
   4  Prefactor     .10000E-03    3.7709        .14653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    53.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7322        10.759        .12310E-02   -1.5377    
   9  Prefactor     .10000E-03    19.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1342        .20037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.364        96.969        .35870E-03   -1.4587    
  12  Prefactor     .10000E-03    30.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    52.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .59506        .58197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2605        2.4230        .16263E-03   -1.5483    
  16  Prefactor     .10000E-03    22.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10010E-03    47.482        .44387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.991        5.7398        .86710E-04   -1.4791    
  19  Prefactor     .10000E-03    14.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    151.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3529        .68522        .42206E-04   -1.5475    
  23  Prefactor     20.220        13.418        .89085E-04   -1.4808    
  24  Prefactor     3.5082        53.396        .21495E-03   -1.5333    
  25  norm          5.4036        2.0477        .65576E-04   -1.5243    
  26  Normalizat    1.0212        .24411        .28035E-03   -.92323    
  27  Prefactor     .98034        .20533        .25336E-03   -.93388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22782e-09
Minuit parameter uncertainties:
  1  11.131
  2  1.72779e-06
  3  2.51207
  4  2.2435e-06
  5  1.03991e-05
  6  3.99928e-05
  7  0.000207614
  8  10.7669
  9  0.000260734
  10  3.02955e-05
  11  97.4613
  12  8.09668e-05
  13  5.45736e-05
  14  2.05775e-07
  15  2.42319
  16  2.86437e-05
  17  0.00433952
  18  5.73997
  19  1.03981e-05
  20  1.53011e-05
  21  3.68088e-06
  22  0.685226
  23  13.4196
  24  27.4019
  25  2.04769
  26  0.244378
  27  0.205496
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.076e-04  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:  9.803e-01  2.055e-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.021e+00  2.444e-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: 8.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205211/likelihoodResults_366076801_366336001_4FGL_J1159.0+0939_daily_bin489.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) = 5980.51880322
delta logL = -0.000227729657126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5980.51857722
delta logL = -1.7271077013e-06

Fit tolerance = 1e-08

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

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

 FCN=   5980.519     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      226 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    2.1609        .10679    ** at limit **
   2  Index         2.2574        2.3061        .50000       -.67054E-04
   3  Normalizat    1.0212        .29196E-02    .63388E-01    .46674E-03
   4  Prefactor     .98033        .26040E-02    .46017E-01    .25300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100654
  Index      = 2.25739
  Normalizat = 1.02122
  Prefactor  = 0.980333
 **********
 **   18 **HESSE 
 **********

 FCN=   5980.519     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      257 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10065E-03    724.97        .38052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2574        7.6293        .50000       -.58060    
   3  Normalizat    1.0212        .15558E-01    .28036E-03   -.92323    
   4  Prefactor     .98033        .13886E-01    .25336E-03   -.93388    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.26306e-07
Minuit parameter uncertainties:
  1  0.0440892
  2  12.9111
  3  0.0155576
  4  0.0138856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205211': 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) = 5980.51857372
delta logL = 1.77360107045e-06

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.007e-04  4.409e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.257e+00  1.291e+01  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:  9.803e-01  1.389e-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.021e+00  1.556e-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/205211/cmap_HighResolution_366076801_366336001_4FGL_J1159.0+0939_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-09-04 18:11:28.294328', job_id='205211', GAL2='0.98', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630804288.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.77e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='489' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:11:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 205211: <4FGL_J1159.0+0939_daily_bin489> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin489 179.751 9.6603 366076801 366336001 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 :                                   751.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

