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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin976
RA = 179.751, Dec = 9.6603
tmin = 492307201, tmax = 492566401
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='208769', job_status='RUN', time_executed='2021-09-04 18:08:10.905599', time_epoch_executed='1630804090.91' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208769/ft1_4FGL_J1159.0+0939_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208769/ft2_4FGL_J1159.0+0939_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208769/ft1_4FGL_J1159.0+0939_daily_bin976.fits outfile=/scratch/kocevski/208769/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin976.fits ra=179.751 dec=9.6603 rad=12.0 tmin=492307201.0 tmax=492566401.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 3.69
user 3.47
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208769/ft1_filtered_4FGL_J1159.0+0939_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/208769/ft2_4FGL_J1159.0+0939_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/208769/ltcube_492307201_492566401_4FGL_J1159.0+0939_daily_bin976.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/208769/ft2_4FGL_J1159.0+0939_daily_bin976.fits
.....................!
real 11.67
user 11.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208769/ft1_filtered_4FGL_J1159.0+0939_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/208769/ft2_4FGL_J1159.0+0939_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/208769/ltcube_492307201_492566401_4FGL_J1159.0+0939_daily_bin976.fits outfile=/scratch/kocevski/208769/expmap_492307201_492566401_4FGL_J1159.0+0939_daily_bin976.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/208769/ltcube_492307201_492566401_4FGL_J1159.0+0939_daily_bin976.fits
.....................!
real 191.91
user 187.08
sys 4.48

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/208769/ft1_filtered_4FGL_J1159.0+0939_daily_bin976.fits scfile=/scratch/kocevski/208769/ft2_4FGL_J1159.0+0939_daily_bin976.fits outfile=/scratch/kocevski/208769/cmap_492307201_492566401_4FGL_J1159.0+0939_daily_bin976.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/208769/ft1_filtered_4FGL_J1159.0+0939_daily_bin976.fits scfile=/scratch/kocevski/208769/ft2_4FGL_J1159.0+0939_daily_bin976.fits outfile=/scratch/kocevski/208769/cmap_HighResolution_492307201_492566401_4FGL_J1159.0+0939_daily_bin976.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2498       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.702       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    99.278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5123       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.235       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7678       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33100       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3295       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1228       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    36.214       1.0000         .10000E-03   10000.    
    21 'Prefactor '    148.42       1.0000         .10000E-03   10000.    
    22 'norm      '    .31343       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.566       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.8519       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0412       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1146       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=   4227.406     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3274 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2487        10.410       -.11291E-06   -.29731E-04
   2  Prefactor     34.632        54.612       -.34498E-05   -.12768E-03
   3  Prefactor     .10000E-03    1.3326        .28790E-06** at limit **
   4  Prefactor     .10000E-03    4.6182        .29838E-07** at limit **
   5  Prefactor     .10000E-03    25.379        .92207E-06** at limit **
   6  Prefactor     99.182        145.39       -.38321E-05   -.44987E-04
   7  Prefactor     9.5124        11.328        .21170E-07   -.33388E-04
   8  Prefactor     .10000E-03    5.9329        .17397E-06** at limit **
   9  Prefactor     20.230        17.738       -.45500E-06   -.50776E-04
  10  Prefactor     8.7653        5.5027       -.35861E-06   -.14256E-03
  11  Prefactor     .10000E-03    36.776       -.20176E-06** at limit **
  12  Prefactor     .10000E-03    14.805       -.20441E-06** at limit **
  13  Prefactor     .10000E-03    14.991        .26274E-06** at limit **
  14  Prefactor     .33209        1.9689        .19202E-05    .53567E-03
  15  Prefactor     .10000E-03    1.0992        .12010E-06** at limit **
  16  Prefactor     .10000E-03    22.478        .63396E-07** at limit **
  17  Prefactor     3.3320        22.270        .32394E-06   -.68871E-05
  18  norm          4.1209        6.4993       -.39744E-06   -.12142E-03
  19  Prefactor     .10000E-03    17.500        .71619E-07** at limit **
  20  norm          36.218        81.974       -.41178E-06   -.33202E-04
  21  Prefactor     148.44        142.02       -.64215E-07    .53730E-05
  22  norm          .31368        .77992        .35351E-06    .55369E-03
  23  Prefactor     14.566        12.051       -.32297E-06   -.67526E-04
  24  Prefactor     .10000E-03    18.412        .25216E-06** at limit **
  25  norm          3.8516        2.5256       -.15213E-06   -.23411E-03
  26  Normalizat    1.0419        .30145        .10178E-04   -.21887E-03
  27  Prefactor     1.1140        .25866       -.89014E-05   -.12883E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.2487
  Prefactor  = 34.6316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.1821
  Prefactor  = 9.51241
  Prefactor  = 0.0001
  Prefactor  = 20.2297
  Prefactor  = 8.76526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.332092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33202
  norm       = 4.12092
  Prefactor  = 0.0001
  norm       = 36.2181
  Prefactor  = 148.441
  norm       = 0.313683
  Prefactor  = 14.566
  Prefactor  = 0.0001
  norm       = 3.85157
  Normalizat = 1.04193
  Prefactor  = 1.11396
 **********
 **   18 **HESSE 
 **********

 FCN=   4227.406     FROM HESSE     STATUS=OK           486 CALLS     3760 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2487        10.398        .16057E-03   -1.5208    
   2  Prefactor     34.632        54.959        .68027E-04   -1.4530    
   3  Prefactor     .10000E-03    1.3573        .73349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6230        .13646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     99.182        145.70        .20173E-03   -1.3713    
   7  Prefactor     9.5124        11.323        .12994E-03   -1.5091    
   8  Prefactor     .10000E-03    5.9976        .15467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.230        17.737        .89040E-04   -1.4808    
  10  Prefactor     8.7653        5.5018        .11557E-03   -1.5116    
  11  Prefactor     .10000E-03    36.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .33209        2.0196        .18113E-03   -1.5593    
  15  Prefactor     .10000E-03    1.1031        .66525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3320        21.672        .22183E-03   -1.5343    
  18  norm          4.1209        6.4507        .14323E-03   -1.5302    
  19  Prefactor     .10000E-03    17.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          36.218        82.334        .66597E-04   -1.4504    
  21  Prefactor     148.44        142.03        .16540E-03   -1.3265    
  22  norm          .31368        .73653        .73905E-04   -1.5596    
  23  Prefactor     14.566        12.051        .10494E-03   -1.4944    
  24  Prefactor     .10000E-03    18.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8516        2.5085        .79164E-04   -1.5315    
  26  Normalizat    1.0419        .30287        .27954E-03   -.91639    
  27  Prefactor     1.1140        .26141        .24906E-03   -.89022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00037e-10
Minuit parameter uncertainties:
  1  10.4012
  2  55.0393
  3  8.00706e-06
  4  3.47994e-07
  5  0.000212132
  6  146.23
  7  11.3255
  8  1.39211e-05
  9  17.742
  10  5.50215
  11  0.000115184
  12  1.14004e-06
  13  3.39287e-05
  14  1.63776
  15  5.71812e-07
  16  5.28979e-05
  17  17.0042
  18  6.45178
  19  4.58357e-05
  20  82.594
  21  142.358
  22  0.736549
  23  12.0528
  24  3.13374e-05
  25  2.50859
  26  0.303372
  27  0.261708
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  9.512e+00  1.133e+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.114e+00  2.617e-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.042e+00  3.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.71e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.66e-05

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

Saving results to:
/scratch/kocevski/208769/likelihoodResults_492307201_492566401_4FGL_J1159.0+0939_daily_bin976.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) = 4226.94364101
delta logL = 0.462633705825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4226.88184333
delta logL = 0.524431385383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.436       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4997       1.0000          .0000       10.000    
     3 'Normalizat'    1.0592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1019       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=   4226.882     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 31.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.434        13.123       -.30187E-05    .10854E-02
   2  Index         1.5003        .40518        .76004E-05    .43891E-03
   3  Normalizat    1.0583        .23187       -.40668E-06   -.51502E-04
   4  Prefactor     1.1026        .21378        .38811E-06   -.92691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4344
  Index      = 1.50035
  Normalizat = 1.05829
  Prefactor  = 1.10258
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.882     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.434        15.295        .10542E-03   -1.4948    
   2  Index         1.5003        .55544        .85031E-02   -.77530    
   3  Normalizat    1.0583        .27626        .27754E-03   -.91102    
   4  Prefactor     1.1026        .25499        .25001E-03   -.89384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84702e-09
Minuit parameter uncertainties:
  1  15.2996
  2  0.557704
  3  0.276639
  4  0.255274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208769': 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) = 4226.88183743
delta logL = 0.524437280003

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.443e+01  1.530e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.500e+00  5.577e-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.103e+00  2.553e-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.058e+00  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 179.751 9.660
Photon Index (Free Index): 1.50 +/- 0.56
Photon Flux (Free Index): 1.63e-08 +/- 2.07e-08
Energy Flux (Free Index): 5.15e-05 +/- 7.92e-05

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/208769/cmap_HighResolution_492307201_492566401_4FGL_J1159.0+0939_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', comment='SUCCESS', photon_flux='2.71e-08', energy_flux2='5.15e-05', photon_flux_error='3.23e-08', dlogl='5.24e-01', energy_flux='1.39e-05', photon_flux2='1.63e-08', job_status='DONE', time_completed='2021-09-04 18:18:52.404735', photon_index_error2='0.56', photon_index2='1.50', ts='1.26', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='7.92e-05', EG='1.04', time_epoch_completed='1630804732.4', return_code='0', job_id='208769', GAL2='1.10', EG2='1.06', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='2.07e-08', ts2='2.32', photon_index='2.13' WHERE bin_id='976' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:18:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 208769: <4FGL_J1159.0+0939_daily_bin976> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin976> 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) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:06:05 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:05 2021
Terminated at Sat Sep  4 18:18:53 2021
Results reported at Sat Sep  4 18:18:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin976 179.751 9.6603 492307201 492566401 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 :                                   639.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            770 sec.

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

