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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin758
RA = 179.751, Dec = 9.6603
tmin = 435801601, tmax = 436060801
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='207148', job_status='RUN', time_executed='2021-09-04 18:03:40.095485', time_epoch_executed='1630803820.1' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207148/ft1_4FGL_J1159.0+0939_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207148/ft2_4FGL_J1159.0+0939_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207148/ft1_4FGL_J1159.0+0939_daily_bin758.fits outfile=/scratch/kocevski/207148/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin758.fits ra=179.751 dec=9.6603 rad=12.0 tmin=435801601.0 tmax=436060801.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.65
user 5.33
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207148/ft1_filtered_4FGL_J1159.0+0939_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/207148/ft2_4FGL_J1159.0+0939_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/207148/ltcube_435801601_436060801_4FGL_J1159.0+0939_daily_bin758.fits outfile=/scratch/kocevski/207148/expmap_435801601_436060801_4FGL_J1159.0+0939_daily_bin758.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/207148/ltcube_435801601_436060801_4FGL_J1159.0+0939_daily_bin758.fits
.....................!
real 190.21
user 184.90
sys 4.97

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/207148/ft1_filtered_4FGL_J1159.0+0939_daily_bin758.fits scfile=/scratch/kocevski/207148/ft2_4FGL_J1159.0+0939_daily_bin758.fits outfile=/scratch/kocevski/207148/cmap_435801601_436060801_4FGL_J1159.0+0939_daily_bin758.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207148/ft1_filtered_4FGL_J1159.0+0939_daily_bin758.fits scfile=/scratch/kocevski/207148/ft2_4FGL_J1159.0+0939_daily_bin758.fits outfile=/scratch/kocevski/207148/cmap_HighResolution_435801601_436060801_4FGL_J1159.0+0939_daily_bin758.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.367       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6615       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11614E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.798       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0404       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    112.73       1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.475       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1176       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .84938       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.826       1.0000         .10000E-03   10000.    
    20 'norm      '    .16104E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1561       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6344       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.8419       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92419       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0363       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=   5705.981     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3392 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.364        12.501       -.12991E-06    .30946E-04
   2  Prefactor     9.6380        37.508       -.17200E-04    .60136E-05
   3  Prefactor     7.0117        2.8025       -.21537E-06    .10750E-03
   4  Prefactor     .10000E-03    28.520       -.19098E-06** at limit **
   5  Prefactor     6.7459        22.076       -.44738E-06   -.99713E-05
   6  Prefactor     34.762        78.507       -.46236E-04    .22763E-04
   7  Prefactor     .10000E-03    4.9458        .54006E-06** at limit **
   8  Prefactor     5.3469        8.1181       -.21765E-05   -.44984E-04
   9  Prefactor     8.0463        24.069        .33876E-04    .13911E-03
  10  Prefactor     8.6399        6.2086       -.29067E-06   -.55270E-04
  11  Prefactor     112.64        126.78       -.80713E-04   -.15248E-04
  12  Prefactor     54.494        42.269        .87152E-05    .22651E-03
  13  Prefactor     25.299        21.094       -.38687E-06    .87399E-04
  14  Prefactor     5.1135        5.0894       -.70081E-06   -.79132E-04
  15  Prefactor     .10000E-03    2.9022       -.25495E-06** at limit **
  16  Prefactor     .10000E-03    11.950        .18131E-06** at limit **
  17  Prefactor     .10000E-03    6.6974       -.82629E-07** at limit **
  18  norm          .83107        4.1686       -.32796E-05   -.32737E-03
  19  Prefactor     10.830        20.859       -.12831E-05    .62875E-04
  20  norm          .10000E-03    189.80        .88076E-05** at limit **
  21  Prefactor     .10000E-03    59.326       -.46055E-06** at limit **
  22  norm          2.1557        .75669        .72857E-07    .42383E-02
  23  Prefactor     7.6362        12.937       -.56529E-06   -.29840E-05
  24  Prefactor     .10000E-03    16.821       -.67242E-07** at limit **
  25  norm          4.8422        2.1076       -.59170E-07    .80033E-03
  26  Normalizat    .92461        .22041        .84601E-05    .22558E-03
  27  Prefactor     1.0361        .18191       -.64217E-06    .58468E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.3638
  Prefactor  = 9.63801
  Prefactor  = 7.01171
  Prefactor  = 0.000100001
  Prefactor  = 6.74589
  Prefactor  = 34.7625
  Prefactor  = 0.000100001
  Prefactor  = 5.34686
  Prefactor  = 8.0463
  Prefactor  = 8.63989
  Prefactor  = 112.637
  Prefactor  = 54.4945
  Prefactor  = 25.2991
  Prefactor  = 5.11354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.831067
  Prefactor  = 10.8296
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.15567
  Prefactor  = 7.63622
  Prefactor  = 0.0001
  norm       = 4.84217
  Normalizat = 0.924611
  Prefactor  = 1.03606
 **********
 **   18 **HESSE 
 **********

 FCN=   5705.981     FROM HESSE     STATUS=OK           494 CALLS     3886 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.364        12.489        .10956E-03   -1.4977    
   2  Prefactor     9.6380        37.627        .12892E-03   -1.5087    
   3  Prefactor     7.0117        2.8032        .77146E-04   -1.5178    
   4  Prefactor     .10000E-03    29.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7459        22.053        .15444E-03   -1.5188    
   6  Prefactor     34.762        78.451        .67934E-04   -1.4528    
   7  Prefactor     .10000E-03    4.9643        .16407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3469        8.1008        .17377E-03   -1.5245    
   9  Prefactor     8.0463        23.940        .14140E-03   -1.5141    
  10  Prefactor     8.6399        6.1903        .13637E-03   -1.5120    
  11  Prefactor     112.64        126.41        .18944E-03   -1.3581    
  12  Prefactor     54.494        42.138        .54346E-04   -1.4230    
  13  Prefactor     25.299        21.088        .79637E-04   -1.4702    
  14  Prefactor     5.1135        4.4193        .13523E-03   -1.5256    
  15  Prefactor     .10000E-03    10.885        .21155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .83107        6.5157        .24001E-02   -1.5526    
  19  Prefactor     10.830        20.829        .12177E-03   -1.5050    
  20  norm          .10000E-03    191.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    59.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1557        .72789        .33228E-04   -1.5414    
  23  Prefactor     7.6362        12.934        .14514E-03   -1.5155    
  24  Prefactor     .10000E-03    16.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.8422        2.1012        .69143E-04   -1.5268    
  26  Normalizat    .92461        .25019        .29101E-03   -.95601    
  27  Prefactor     1.0361        .20830        .25078E-03   -.91537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04057e-09
Minuit parameter uncertainties:
  1  12.4916
  2  37.7194
  3  2.80327
  4  0.000313229
  5  22.0801
  6  78.6852
  7  0.000138191
  8  8.10243
  9  23.9683
  10  6.19076
  11  126.713
  12  42.1607
  13  21.0943
  14  4.41961
  15  8.49147e-05
  16  2.87488e-05
  17  1.9816e-05
  18  4.65446
  19  20.8431
  20  0.00121869
  21  2.7849e-05
  22  0.72789
  23  12.9383
  24  2.63736e-05
  25  2.10118
  26  0.250505
  27  0.208465
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.382e-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.036e+00  2.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.246e-01  2.505e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207148/likelihoodResults_435801601_436060801_4FGL_J1159.0+0939_daily_bin758.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) = 5705.98149227
delta logL = -0.000957921664849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5705.98053435
delta logL = 3.08500602841e-09

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.1271       1.0000          .0000       10.000    
     3 'Normalizat'    .92462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0361       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=   5705.981     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    663.95        .90712E-02** at limit **
   2  Index         2.1220        7.0263        .50000        .80999E-05
   3  Normalizat    .92461        .73562E-01    .65789E-01    .81742E-05
   4  Prefactor     1.0361        .66974E-01    .40805E-01    .29285E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12204
  Normalizat = 0.924615
  Prefactor  = 1.03606
 **********
 **   18 **HESSE 
 **********

 FCN=   5705.981     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    777.12        .16426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1220        5.2194        .50000       -.61333    
   3  Normalizat    .92461        .85370E-01    .29101E-03   -.95601    
   4  Prefactor     1.0361        .77916E-01    .25078E-03   -.91537    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03922e-08
Minuit parameter uncertainties:
  1  7.54868e-06
  2  51.8377
  3  0.0853822
  4  0.0779241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207148': 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) = 5705.98053433
delta logL = 2.1009327611e-08

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.549e-06  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.122e+00  5.184e+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.036e+00  7.792e-02  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.246e-01  8.538e-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/207148/cmap_HighResolution_435801601_436060801_4FGL_J1159.0+0939_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-04 18:16:31.935333', job_id='207148', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630804591.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='758' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:16:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 207148: <4FGL_J1159.0+0939_daily_bin758> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin758 179.751 9.6603 435801601 436060801 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 :                                   769.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

