/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 155 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.0+0939_daily_bin315
RA = 179.751, Dec = 9.6603
tmin = 320976001, tmax = 321235201
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='203649', job_status='RUN', time_executed='2021-09-04 17:54:43.922809', time_epoch_executed='1630803283.92' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203649/ft1_4FGL_J1159.0+0939_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203649/ft2_4FGL_J1159.0+0939_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203649/ft1_4FGL_J1159.0+0939_daily_bin315.fits outfile=/scratch/kocevski/203649/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin315.fits ra=179.751 dec=9.6603 rad=12.0 tmin=320976001.0 tmax=321235201.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 2.63
user 2.44
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203649/ft1_filtered_4FGL_J1159.0+0939_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/203649/ft2_4FGL_J1159.0+0939_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/203649/ltcube_320976001_321235201_4FGL_J1159.0+0939_daily_bin315.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/203649/ft2_4FGL_J1159.0+0939_daily_bin315.fits
.....................!
real 9.19
user 8.57
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203649/ft1_filtered_4FGL_J1159.0+0939_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/203649/ft2_4FGL_J1159.0+0939_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/203649/ltcube_320976001_321235201_4FGL_J1159.0+0939_daily_bin315.fits outfile=/scratch/kocevski/203649/expmap_320976001_321235201_4FGL_J1159.0+0939_daily_bin315.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/203649/ltcube_320976001_321235201_4FGL_J1159.0+0939_daily_bin315.fits
.....................!
real 142.45
user 139.21
sys 2.96

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/203649/ft1_filtered_4FGL_J1159.0+0939_daily_bin315.fits scfile=/scratch/kocevski/203649/ft2_4FGL_J1159.0+0939_daily_bin315.fits outfile=/scratch/kocevski/203649/cmap_320976001_321235201_4FGL_J1159.0+0939_daily_bin315.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.45
user 0.31
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203649/ft1_filtered_4FGL_J1159.0+0939_daily_bin315.fits scfile=/scratch/kocevski/203649/ft2_4FGL_J1159.0+0939_daily_bin315.fits outfile=/scratch/kocevski/203649/cmap_HighResolution_320976001_321235201_4FGL_J1159.0+0939_daily_bin315.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4529       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.111       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1114       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11609E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9430       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8180       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.8108       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.134       1.0000         .10000E-03   10000.    
    22 'norm      '    .43416       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11901E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.015       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1409       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1632       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1176       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=   6962.013     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3287 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5045       -.15187E-06** at limit **
   2  Prefactor     .10000E-03    15.947       -.78018E-06** at limit **
   3  Prefactor     2.4529        1.8949       -.46988E-06   -.61873E-04
   4  Prefactor     11.109        14.359       -.42976E-05   -.10509E-02
   5  Prefactor     .10000E-03    13.632       -.76311E-07** at limit **
   6  Prefactor     19.524        57.696       -.54507E-04    .13384E-04
   7  Prefactor     19.089        12.673       -.36253E-05    .39732E-04
   8  Prefactor     .10000E-03    3.7402        .49720E-07** at limit **
   9  Prefactor     .10000E-03    6.3454        .40195E-07** at limit **
  10  Prefactor     7.1115        5.4631       -.79973E-06   -.13239E-03
  11  Prefactor     .10000E-03    128.67        .14985E-04** at limit **
  12  Prefactor     2.9461        61.881       -.47598E-05   -.12251E-04
  13  Prefactor     10.542        16.270       -.83019E-05    .11009E-04
  14  Prefactor     .10000E-03    1.1557       -.47985E-07** at limit **
  15  Prefactor     2.8178        3.2221       -.11009E-05   -.49341E-03
  16  Prefactor     .10000E-03    10.878       -.10013E-05** at limit **
  17  Prefactor     .10000E-03    3.9160       -.15713E-06** at limit **
  18  norm          5.8110        3.0267        .16260E-05    .39560E-03
  19  Prefactor     .10000E-03    10.835       -.15525E-05** at limit **
  20  norm          .10000E-03    14.556       -.28708E-05** at limit **
  21  Prefactor     32.865        104.33       -.42925E-03    .48069E-04
  22  norm          .43413        .41705       -.16126E-06    .75332E-04
  23  Prefactor     .10000E-03    11.970        .60609E-05** at limit **
  24  Prefactor     29.987        26.839       -.48998E-05   -.59513E-04
  25  norm          3.1410        1.6750        .56547E-06    .57985E-03
  26  Normalizat    1.1634        .19770        .39295E-05    .25035E-03
  27  Prefactor     1.1175        .17225        .92971E-05   -.22454E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.45288
  Prefactor  = 11.1091
  Prefactor  = 0.0001
  Prefactor  = 19.5244
  Prefactor  = 19.0889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.11146
  Prefactor  = 0.0001
  Prefactor  = 2.9461
  Prefactor  = 10.5416
  Prefactor  = 0.0001
  Prefactor  = 2.81779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.81098
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 32.8646
  norm       = 0.434134
  Prefactor  = 0.0001
  Prefactor  = 29.9874
  norm       = 3.14098
  Normalizat = 1.16337
  Prefactor  = 1.11747
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.013     FROM HESSE     STATUS=OK           488 CALLS     3775 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5121        .15254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4529        1.8931        .97779E-04   -1.5395    
   4  Prefactor     11.109        14.370        .60095E-03   -1.5041    
   5  Prefactor     .10000E-03    13.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.524        57.731        .90570E-04   -1.4824    
   7  Prefactor     19.089        12.683        .91684E-04   -1.4834    
   8  Prefactor     .10000E-03    3.7554        .15754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1115        5.4601        .15043E-03   -1.5175    
  11  Prefactor     .10000E-03    129.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9461        61.934        .23675E-03   -1.5365    
  13  Prefactor     10.542        16.272        .12343E-03   -1.5058    
  14  Prefactor     .10000E-03    1.1617        .87449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8178        3.2074        .15280E-03   -1.5372    
  16  Prefactor     .10000E-03    10.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9339        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.8110        3.0059        .97667E-04   -1.5226    
  19  Prefactor     .10000E-03    10.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    14.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.865        104.57        .34807E-03   -1.4561    
  22  norm          .43413        .39034        .49362E-03   -1.5576    
  23  Prefactor     .10000E-03    12.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.987        26.832        .73132E-04   -1.4612    
  25  norm          3.1410        1.6710        .75630E-04   -1.5353    
  26  Normalizat    1.1634        .23670        .27862E-03   -.87742    
  27  Prefactor     1.1175        .20568        .25634E-03   -.88910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63542e-09
Minuit parameter uncertainties:
  1  2.2398e-05
  2  7.97639e-05
  3  1.89316
  4  14.3748
  5  8.28285e-05
  6  57.8972
  7  12.6846
  8  1.79878e-05
  9  1.51085e-05
  10  5.46051
  11  0.000273788
  12  27.0473
  13  16.2789
  14  3.84166e-06
  15  3.20761
  16  7.81757e-05
  17  1.14168e-05
  18  3.00595
  19  0.000204854
  20  4.20651e-05
  21  105.161
  22  0.390343
  23  1.81939e-05
  24  26.8427
  25  1.67098
  26  0.236915
  27  0.205827
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.909e+01  1.268e+01  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.117e+00  2.058e-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.163e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.68
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 1.86e-05

TS (Fixed Index): 3.68
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203649/likelihoodResults_320976001_321235201_4FGL_J1159.0+0939_daily_bin315.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): 0
logL (Free Index) = 6962.00375823
delta logL = 0.00927264782058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6961.99899671
delta logL = 0.0140341613333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.770       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2133       1.0000          .0000       10.000    
     3 'Normalizat'    1.1573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1208       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=   6961.999     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      258 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.772        15.105        .95010E-04   -.87350E-05
   2  Index         2.2131        .51092        .63012E-02    .47229E-03
   3  Normalizat    1.1576        .22917        .27922E-03   -.45397E-04
   4  Prefactor     1.1207        .20570        .25602E-03   -.38632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7716
  Index      = 2.21314
  Normalizat = 1.15757
  Prefactor  = 1.12071
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.999     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.772        14.545        .38004E-05   -1.4865    
   2  Index         2.2131        .49168        .12602E-02   -.59122    
   3  Normalizat    1.1576        .22917        .11169E-04   -.87924    
   4  Prefactor     1.1207        .20577        .10241E-04   -.88807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96118e-12
Minuit parameter uncertainties:
  1  14.5477
  2  0.492839
  3  0.229369
  4  0.205914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203649': 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): 0
logL (Free Index) = 6961.99899526
delta logL = 0.0140356153597

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.777e+01  1.455e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.213e+00  4.928e-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.121e+00  2.059e-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.158e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 179.751 9.660
Photon Index (Free Index): 2.21 +/- 0.49
Photon Flux (Free Index): 5.90e-08 +/- 4.63e-08
Energy Flux (Free Index): 2.59e-05 +/- 2.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/203649/cmap_HighResolution_320976001_321235201_4FGL_J1159.0+0939_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.89e-03', comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='2.59e-05', photon_flux_error='3.62e-08', dlogl='1.40e-02', energy_flux='2.79e-05', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-04 18:05:44.257137', photon_index_error2='0.49', photon_index2='2.21', ts='3.68', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='2.06e-05', EG='1.16', time_epoch_completed='1630803944.26', return_code='0', job_id='203649', GAL2='1.12', EG2='1.16', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='4.63e-08', ts2='3.69', photon_index='2.13' WHERE bin_id='315' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 203649: <4FGL_J1159.0+0939_daily_bin315> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin315> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:51:58 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:51:59 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:51:59 2021
Terminated at Sat Sep  4 18:05:45 2021
Results reported at Sat Sep  4 18:05:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin315 179.751 9.6603 320976001 321235201 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 :                                   658.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             242.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

