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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin674
RA = 179.751, Dec = 9.6603
tmin = 414028801, tmax = 414288001
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='207033', job_status='RUN', time_executed='2021-09-04 18:04:21.890262', time_epoch_executed='1630803861.89' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207033/ft1_4FGL_J1159.0+0939_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207033/ft2_4FGL_J1159.0+0939_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207033/ft1_4FGL_J1159.0+0939_daily_bin674.fits outfile=/scratch/kocevski/207033/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin674.fits ra=179.751 dec=9.6603 rad=12.0 tmin=414028801.0 tmax=414288001.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.17
user 4.90
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207033/ft1_filtered_4FGL_J1159.0+0939_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/207033/ft2_4FGL_J1159.0+0939_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/207033/ltcube_414028801_414288001_4FGL_J1159.0+0939_daily_bin674.fits outfile=/scratch/kocevski/207033/expmap_414028801_414288001_4FGL_J1159.0+0939_daily_bin674.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/207033/ltcube_414028801_414288001_4FGL_J1159.0+0939_daily_bin674.fits
.....................!
real 190.53
user 186.07
sys 4.13

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/207033/ft1_filtered_4FGL_J1159.0+0939_daily_bin674.fits scfile=/scratch/kocevski/207033/ft2_4FGL_J1159.0+0939_daily_bin674.fits outfile=/scratch/kocevski/207033/cmap_414028801_414288001_4FGL_J1159.0+0939_daily_bin674.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207033/ft1_filtered_4FGL_J1159.0+0939_daily_bin674.fits scfile=/scratch/kocevski/207033/ft2_4FGL_J1159.0+0939_daily_bin674.fits outfile=/scratch/kocevski/207033/cmap_HighResolution_414028801_414288001_4FGL_J1159.0+0939_daily_bin674.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/207033/ft1_filtered_4FGL_J1159.0+0939_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/207033/ft2_4FGL_J1159.0+0939_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207033/Model_4FGL_J1159.0+0939_daily_bin674.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/207033/ft1_filtered_4FGL_J1159.0+0939_daily_bin674.fits.....................!
real 46.64
user 45.39
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.177       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22968E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.416       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1822       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.539       1.0000         .10000E-03   10000.    
    18 'norm      '    .77057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    153.98       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5334       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.575       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.6987       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2943       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65724       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=   4412.640     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3313 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6808        15.804        .59159E-06   -.10446E-04
   2  Prefactor     28.171        52.743       -.88793E-05    .20851E-04
   3  Prefactor     .10000E-03    .66867        .10082E-07** at limit **
   4  Prefactor     .10090E-03    8.9438       -.42694E-06** at limit **
   5  Prefactor     11.923        17.833       -.60008E-06    .83486E-05
   6  Prefactor     65.389        101.15       -.30489E-04    .18497E-04
   7  Prefactor     .10000E-03    3.6652        .15495E-06** at limit **
   8  Prefactor     .10000E-03    2.1842        .14709E-06** at limit **
   9  Prefactor     .10000E-03    9.5521        .44179E-06** at limit **
  10  Prefactor     7.5581        6.3804       -.47926E-05   -.11076E-03
  11  Prefactor     .10000E-03    40.460       -.12757E-04** at limit **
  12  Prefactor     .10000E-03    34.113       -.13354E-04** at limit **
  13  Prefactor     .10000E-03    13.797       -.65892E-05** at limit **
  14  Prefactor     .10000E-03    5.1712        .49159E-06** at limit **
  15  Prefactor     4.1822        4.4918        .89756E-07   -.15794E-03
  16  Prefactor     .10000E-03    54.577        .34161E-04** at limit **
  17  Prefactor     20.540        18.661       -.23853E-06    .11337E-03
  18  norm          .77169        10.769       -.15791E-05   -.41996E-03
  19  Prefactor     .10000E-03    14.481        .68557E-05** at limit **
  20  norm          153.98        107.49       -.86241E-06    .14892E-03
  21  Prefactor     .10000E-03    88.538        .83974E-05** at limit **
  22  norm          1.5341        .96000        .32685E-07    .94109E-03
  23  Prefactor     18.571        13.129       -.29259E-06   -.25222E-04
  24  Prefactor     .10000E-03    29.870        .81547E-05** at limit **
  25  norm          6.6988        2.6887       -.66517E-07    .28092E-03
  26  Normalizat    1.2944        .24557        .50230E-05   -.47187E-04
  27  Prefactor     .65714        .19584       -.36606E-07    .17567E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.6808
  Prefactor  = 28.1709
  Prefactor  = 0.0001
  Prefactor  = 0.000100904
  Prefactor  = 11.9229
  Prefactor  = 65.3893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.55812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18215
  Prefactor  = 0.0001
  Prefactor  = 20.5396
  norm       = 0.771692
  Prefactor  = 0.0001
  norm       = 153.983
  Prefactor  = 0.0001
  norm       = 1.53406
  Prefactor  = 18.5714
  Prefactor  = 0.0001
  norm       = 6.6988
  Normalizat = 1.29443
  Prefactor  = 0.65714
 **********
 **   18 **HESSE 
 **********

 FCN=   4412.640     FROM HESSE     STATUS=OK           488 CALLS     3801 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6808        15.766        .13604E-03   -1.5119    
   2  Prefactor     28.171        52.806        .75473E-04   -1.4646    
   3  Prefactor     .10000E-03    .66998        .53046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10090E-03    93.601        .37728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.923        17.829        .11604E-03   -1.5017    
   6  Prefactor     65.389        100.70        .49620E-04   -1.4089    
   7  Prefactor     .10000E-03    3.6686        .12420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1847        .95880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5581        6.3729        .14453E-03   -1.5158    
  11  Prefactor     .10000E-03    40.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3556        .29318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1822        4.4881        .13655E-03   -1.5299    
  16  Prefactor     .10000E-03    54.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.540        18.595        .88378E-04   -1.4801    
  18  norm          .77169        14.974        .26316E-02   -1.5532    
  19  Prefactor     .10000E-03    14.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          153.98        98.367        .32486E-04   -1.3220    
  21  Prefactor     .10000E-03    88.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5341        .92688        .43027E-04   -1.5460    
  23  Prefactor     18.571        13.128        .92932E-04   -1.4846    
  24  Prefactor     .10000E-03    29.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.6988        2.6763        .65898E-04   -1.5190    
  26  Normalizat    1.2944        .28920        .24870E-03   -.83733    
  27  Prefactor     .65714        .23206        .29084E-03   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06367e-08
Minuit parameter uncertainties:
  1  15.7739
  2  52.8936
  3  1.38373e-06
  4  0.0184267
  5  17.8373
  6  100.968
  7  6.21979e-06
  8  1.01204e-06
  9  9.18849e-06
  10  6.37348
  11  8.4823e-06
  12  0.000104898
  13  6.19893e-06
  14  8.30523e-05
  15  4.48846
  16  4.28989e-06
  17  18.6003
  18  6.80021
  19  7.72082e-06
  20  98.4715
  21  1.74267e-05
  22  0.926889
  23  13.1301
  24  8.95609e-05
  25  2.67635
  26  0.289558
  27  0.232405
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.220e-06  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:  6.571e-01  2.324e-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.294e+00  2.896e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207033/likelihoodResults_414028801_414288001_4FGL_J1159.0+0939_daily_bin674.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) = 4412.64164886
delta logL = -0.00125520459824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4412.64039343
delta logL = 2.27451891988e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1069       1.0000          .0000       10.000    
     3 'Normalizat'    1.2944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65715       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=   4412.640     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10333E-03    4.8069        .12757E-01** at limit **
   2  Index         2.0112        7.3210        .50000        .45209E-04
   3  Normalizat    1.2944        .61822E-02    .24869E-03    .14263E-04
   4  Prefactor     .65714        .53511E-02    .29084E-03    .37057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103333
  Index      = 2.01117
  Normalizat = 1.29444
  Prefactor  = 0.657136
 **********
 **   18 **HESSE 
 **********

 FCN=   4412.640     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10333E-03    63.078        .13184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0112        8.0488        .50000       -.64071    
   3  Normalizat    1.2944        .22729E-01    .99478E-05   -.83733    
   4  Prefactor     .65714        .19673E-01    .11634E-04   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.76174e-08
Minuit parameter uncertainties:
  1  0.029029
  2  314.937
  3  0.0227289
  4  0.0196731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207033': 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) = 4412.64039251
delta logL = 1.14008525998e-06

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.033e-04  2.903e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.011e+00  3.149e+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:  6.571e-01  1.967e-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.294e+00  2.273e-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/207033/cmap_HighResolution_414028801_414288001_4FGL_J1159.0+0939_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-09-04 18:15:30.333032', job_id='207033', GAL2='0.66', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630804530.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='674' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:15:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 207033: <4FGL_J1159.0+0939_daily_bin674> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin674 179.751 9.6603 414028801 414288001 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 :                                   667.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

