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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin974
RA = 179.751, Dec = 9.6603
tmin = 491788801, tmax = 492048001
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='208765', job_status='RUN', time_executed='2021-09-04 18:08:45.731134', time_epoch_executed='1630804125.73' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208765

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208765/ft1_4FGL_J1159.0+0939_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208765/ft2_4FGL_J1159.0+0939_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208765/ft1_4FGL_J1159.0+0939_daily_bin974.fits outfile=/scratch/kocevski/208765/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin974.fits ra=179.751 dec=9.6603 rad=12.0 tmin=491788801.0 tmax=492048001.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.19
user 3.99
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208765/ft2_4FGL_J1159.0+0939_daily_bin974.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/208765/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/208765/ft1_filtered_4FGL_J1159.0+0939_daily_bin974.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208765/ft1_filtered_4FGL_J1159.0+0939_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/208765/ft2_4FGL_J1159.0+0939_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/208765/ltcube_491788801_492048001_4FGL_J1159.0+0939_daily_bin974.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/208765/ft2_4FGL_J1159.0+0939_daily_bin974.fits
.....................!
real 11.48
user 11.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208765/ft1_filtered_4FGL_J1159.0+0939_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/208765/ft2_4FGL_J1159.0+0939_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/208765/ltcube_491788801_492048001_4FGL_J1159.0+0939_daily_bin974.fits outfile=/scratch/kocevski/208765/expmap_491788801_492048001_4FGL_J1159.0+0939_daily_bin974.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/208765/ltcube_491788801_492048001_4FGL_J1159.0+0939_daily_bin974.fits
.....................!
real 189.63
user 185.08
sys 4.23

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/208765/ft1_filtered_4FGL_J1159.0+0939_daily_bin974.fits scfile=/scratch/kocevski/208765/ft2_4FGL_J1159.0+0939_daily_bin974.fits outfile=/scratch/kocevski/208765/cmap_491788801_492048001_4FGL_J1159.0+0939_daily_bin974.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.57
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208765/ft1_filtered_4FGL_J1159.0+0939_daily_bin974.fits scfile=/scratch/kocevski/208765/ft2_4FGL_J1159.0+0939_daily_bin974.fits outfile=/scratch/kocevski/208765/cmap_HighResolution_491788801_492048001_4FGL_J1159.0+0939_daily_bin974.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    154.37       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0843       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    131.92       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14009       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14952E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.521       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0064       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.116       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7959       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .80596       1.0000         .10000E-03   10000.    
    20 'norm      '    .11042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    383.92       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3321       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.661       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79254       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1588       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=   4316.263     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3339 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.388        .12927E-05** at limit **
   2  Prefactor     154.26        83.804        .30576E-06   -.10324E-03
   3  Prefactor     3.0832        2.6477        .83286E-07   -.37976E-04
   4  Prefactor     .10000E-03    6.4069        .10802E-06** at limit **
   5  Prefactor     .10000E-03    11.333        .22692E-06** at limit **
   6  Prefactor     131.51        108.54       -.34688E-05   -.18029E-03
   7  Prefactor     .10000E-03    8.3403        .13853E-05** at limit **
   8  Prefactor     .10000E-03    2.9011        .30067E-06** at limit **
   9  Prefactor     .10000E-03    12.510        .55112E-06** at limit **
  10  Prefactor     .16194        56.514       -.16557E-04   -.36589E-05
  11  Prefactor     .10000E-03    61.690        .87236E-06** at limit **
  12  Prefactor     .10000E-03    30.721        .17332E-05** at limit **
  13  Prefactor     31.498        29.166        .58210E-06    .13000E-04
  14  Prefactor     1.0069        3.5329       -.25486E-07   -.77142E-04
  15  Prefactor     .10000E-03    1.5068        .14563E-07** at limit **
  16  Prefactor     24.987        45.194        .75754E-06    .56486E-04
  17  Prefactor     11.121        11.979       -.40214E-07   -.15012E-05
  18  norm          2.8053        6.8838       -.22947E-06   -.21779E-03
  19  Prefactor     .53528        116.84        .15995E-04   -.65609E-04
  20  norm          .10000E-03    71.838        .93330E-06** at limit **
  21  Prefactor     384.31        267.22        .10914E-05    .56787E-04
  22  norm          2.3306        .94402       -.62308E-10   -.49280E-03
  23  Prefactor     25.649        23.066       -.21880E-06   -.23564E-04
  24  Prefactor     .10000E-03    25.687        .43065E-06** at limit **
  25  norm          .10000E-03    1.3826        .31635E-06** at limit **
  26  Normalizat    .79348        .30405       -.67476E-05   -.19505E-03
  27  Prefactor     1.1579        .25054        .39073E-05   -.47469E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 154.262
  Prefactor  = 3.0832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.512
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.161941
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 31.4982
  Prefactor  = 1.0069
  Prefactor  = 0.0001
  Prefactor  = 24.9867
  Prefactor  = 11.1214
  norm       = 2.8053
  Prefactor  = 0.535279
  norm       = 0.0001
  Prefactor  = 384.308
  norm       = 2.33061
  Prefactor  = 25.6492
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.793484
  Prefactor  = 1.15792
 **********
 **   18 **HESSE 
 **********

 FCN=   4316.263     FROM HESSE     STATUS=OK           492 CALLS     3831 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     154.26        84.136        .16223E-03   -1.3217    
   3  Prefactor     3.0832        2.6462        .93198E-04   -1.5357    
   4  Prefactor     .10000E-03    6.4102        .16243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     131.51        109.38        .17529E-03   -1.3409    
   7  Prefactor     .10000E-03    8.4817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9146        .10940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16194        57.241        .33754E-02   -1.5628    
  11  Prefactor     .10000E-03    61.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.498        29.201        .71367E-04   -1.4585    
  14  Prefactor     1.0069        3.4406        .22267E-03   -1.5507    
  15  Prefactor     .10000E-03    1.5076        .78750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.987        45.279        .80072E-04   -1.4708    
  17  Prefactor     11.121        11.970        .12016E-03   -1.5041    
  18  norm          2.8053        6.7709        .20023E-03   -1.5373    
  19  Prefactor     .53528        84.858        .14960       -1.5562    
  20  norm          .10000E-03    71.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     384.31        275.41        .10409E-03   -1.1762    
  22  norm          2.3306        .93752        .34378E-04   -1.5403    
  23  Prefactor     25.649        23.087        .79080E-04   -1.4695    
  24  Prefactor     .10000E-03    25.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.4384        .15100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .79348        .30792        .32647E-03   -1.0031    
  27  Prefactor     1.1579        .25464        .24216E-03   -.87636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46277e-08
Minuit parameter uncertainties:
  1  0.000277537
  2  84.2019
  3  2.64629
  4  1.78853e-05
  5  3.0373e-05
  6  109.546
  7  0.000218031
  8  2.62735e-05
  9  0.000114889
  10  6.09319
  11  0.00036567
  12  0.000536094
  13  29.2147
  14  3.44124
  15  2.52152e-06
  16  45.3411
  17  11.9724
  18  6.77273
  19  13.4975
  20  0.000331322
  21  276.362
  22  0.937524
  23  23.0949
  24  9.76691e-05
  25  9.9419e-06
  26  0.308595
  27  0.254906
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.180e-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:  1.158e+00  2.549e-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:  7.935e-01  3.086e-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: 9.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208765/likelihoodResults_491788801_492048001_4FGL_J1159.0+0939_daily_bin974.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) = 4316.26379826
delta logL = -0.000560552912248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4316.26323822
delta logL = -5.18781234859e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1315       1.0000          .0000       10.000    
     3 'Normalizat'    .79377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1577       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=   4316.263     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1024.6        .90712E-02** at limit **
   2  Index         2.1309        8.1123        .50000        .46316E-06
   3  Normalizat    .79348        .82647E-01    .73755E-01    .18703E-04
   4  Prefactor     1.1579        .72889E-01    .54770E-01    .53030E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13092
  Normalizat = 0.793481
  Prefactor  = 1.15793
 **********
 **   18 **HESSE 
 **********

 FCN=   4316.263     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1251.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1309        5.2765        .50000       -.61116    
   3  Normalizat    .79348        .98879E-01    .32644E-03   -1.0031    
   4  Prefactor     1.1579        .87557E-01    .24216E-03   -.87636    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07337e-11
Minuit parameter uncertainties:
  1  2.04791e-05
  2  50.9279
  3  0.098901
  4  0.0875675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208765': 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) = 4316.26323771
delta logL = 4.92946128361e-10

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.048e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.131e+00  5.093e+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:  1.158e+00  8.757e-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:  7.935e-01  9.890e-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/208765/cmap_HighResolution_491788801_492048001_4FGL_J1159.0+0939_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.47e-08', time_completed='2021-09-04 18:19:24.017763', job_id='208765', GAL2='1.16', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630804764.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.93e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='974' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:19:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 208765: <4FGL_J1159.0+0939_daily_bin974> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin974> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 18:06:03 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:06:04 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:06:04 2021
Terminated at Sat Sep  4 18:19:24 2021
Results reported at Sat Sep  4 18:19:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin974 179.751 9.6603 491788801 492048001 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            801 sec.

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

