/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 1 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 = 7284
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.0+0939_daily_bin118
RA = 179.751, Dec = 9.6603
tmin = 269913601, tmax = 270172801
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='203345', job_status='RUN', time_executed='2021-09-04 17:51:45.080705', time_epoch_executed='1630803105.08' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203345/ft1_4FGL_J1159.0+0939_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203345/ft2_4FGL_J1159.0+0939_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203345/ft1_4FGL_J1159.0+0939_daily_bin118.fits outfile=/scratch/kocevski/203345/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin118.fits ra=179.751 dec=9.6603 rad=12.0 tmin=269913601.0 tmax=270172801.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 1.66
user 1.47
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203345/ft1_filtered_4FGL_J1159.0+0939_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/203345/ft2_4FGL_J1159.0+0939_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/203345/ltcube_269913601_270172801_4FGL_J1159.0+0939_daily_bin118.fits outfile=/scratch/kocevski/203345/expmap_269913601_270172801_4FGL_J1159.0+0939_daily_bin118.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/203345/ltcube_269913601_270172801_4FGL_J1159.0+0939_daily_bin118.fits
.....................!
real 192.60
user 187.05
sys 5.03

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/203345/ft1_filtered_4FGL_J1159.0+0939_daily_bin118.fits scfile=/scratch/kocevski/203345/ft2_4FGL_J1159.0+0939_daily_bin118.fits outfile=/scratch/kocevski/203345/cmap_269913601_270172801_4FGL_J1159.0+0939_daily_bin118.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203345/ft1_filtered_4FGL_J1159.0+0939_daily_bin118.fits scfile=/scratch/kocevski/203345/ft2_4FGL_J1159.0+0939_daily_bin118.fits outfile=/scratch/kocevski/203345/cmap_HighResolution_269913601_270172801_4FGL_J1159.0+0939_daily_bin118.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14517E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5205       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.622       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8478       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.358       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3823       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55606E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23072E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.565       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .66352       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0171       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .19217E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.328       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8003       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0644       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.761       1.0000         .10000E-03   10000.    
    25 'norm      '    4.2986       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86109       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2170       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=   8829.180     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     2873 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2281        .60576E-07** at limit **
   2  Prefactor     21.092        27.584       -.15259E-06   -.98343E-05
   3  Prefactor     2.6724        1.5413        .78660E-08   -.15969E-04
   4  Prefactor     .10000E-03    5.7528        .38753E-07** at limit **
   5  Prefactor     1.5051        21.737        .91873E-05    .87025E-04
   6  Prefactor     48.656        71.636        .60095E-05    .95711E-05
   7  Prefactor     6.8330        7.5644       -.14020E-06   -.34118E-04
   8  Prefactor     12.360        7.7948       -.28893E-07   -.32121E-04
   9  Prefactor     8.3965        9.9462        .54678E-06    .59489E-05
  10  Prefactor     .10000E-03    1.1779        .20509E-07** at limit **
  11  Prefactor     .10000E-03    36.766       -.37755E-06** at limit **
  12  Prefactor     .10000E-03    17.965       -.10060E-06** at limit **
  13  Prefactor     20.721        23.160        .13274E-05    .95381E-05
  14  Prefactor     .10000E-03    .59466        .96269E-08** at limit **
  15  Prefactor     .10000E-03    .97557        .86680E-08** at limit **
  16  Prefactor     .67743        14.954        .30908E-05   -.43429E-03
  17  Prefactor     5.9276        12.452       -.46034E-06   -.31719E-04
  18  norm          3.9711        2.6937        .14591E-06   -.30917E-03
  19  Prefactor     .10000E-03    10.673       -.93006E-07** at limit **
  20  norm          .10000E-03    27.630        .70533E-06** at limit **
  21  Prefactor     55.131        64.949        .99705E-05    .38191E-04
  22  norm          2.7997        .63694       -.89825E-08   -.66201E-03
  23  Prefactor     7.0551        6.9733       -.22221E-06   -.27447E-04
  24  Prefactor     15.178        25.179        .18238E-05    .73236E-05
  25  norm          4.2963        1.5503       -.50437E-08   -.11739E-03
  26  Normalizat    .86291        .16867       -.35396E-06   -.10243E-03
  27  Prefactor     1.2169        .15444       -.58753E-06   -.77804E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 21.0919
  Prefactor  = 2.67243
  Prefactor  = 0.0001
  Prefactor  = 1.50512
  Prefactor  = 48.6559
  Prefactor  = 6.83301
  Prefactor  = 12.3603
  Prefactor  = 8.39648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.677429
  Prefactor  = 5.92762
  norm       = 3.97113
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 55.1311
  norm       = 2.79971
  Prefactor  = 7.05511
  Prefactor  = 15.1784
  norm       = 4.29634
  Normalizat = 0.862909
  Prefactor  = 1.2169
 **********
 **   18 **HESSE 
 **********

 FCN=   8829.180     FROM HESSE     STATUS=OK           494 CALLS     3367 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2364        .16486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.092        27.653        .85253E-04   -1.4789    
   3  Prefactor     2.6724        1.5448        .86210E-04   -1.5381    
   4  Prefactor     .10000E-03    5.7933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5051        21.826        .17325E-02   -1.5463    
   6  Prefactor     48.656        71.695        .56366E-04   -1.4312    
   7  Prefactor     6.8330        7.5579        .15332E-03   -1.5185    
   8  Prefactor     12.360        7.7945        .11395E-03   -1.5005    
   9  Prefactor     8.3965        9.9417        .13846E-03   -1.5128    
  10  Prefactor     .10000E-03    1.1888        .99559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.845        .21104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.721        23.096        .88322E-04   -1.4797    
  14  Prefactor     .10000E-03    .60065        .70737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .99260        .90576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .67743        94.262        .65149E-02   -1.5543    
  17  Prefactor     5.9276        12.397        .16369E-03   -1.5221    
  18  norm          3.9711        2.6908        .58546E-03   -1.5309    
  19  Prefactor     .10000E-03    10.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    27.737        .20264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.131        65.068        .27209E-03   -1.4222    
  22  norm          2.7997        .63638        .32883E-04   -1.5373    
  23  Prefactor     7.0551        6.9596        .15093E-03   -1.5177    
  24  Prefactor     15.178        25.138        .10089E-03   -1.4929    
  25  norm          4.2963        1.5491        .67733E-04   -1.5293    
  26  Normalizat    .86291        .20178        .30150E-03   -.97776    
  27  Prefactor     1.2169        .18561        .24137E-03   -.85813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46619e-09
Minuit parameter uncertainties:
  1  3.30737e-06
  2  27.6695
  3  1.54479
  4  8.04287e-06
  5  11.4676
  6  71.8223
  7  7.559
  8  7.79517
  9  9.94369
  10  1.41896e-06
  11  1.66113e-05
  12  3.25002e-05
  13  23.1062
  14  5.43278e-07
  15  7.20389e-07
  16  16.0065
  17  12.4026
  18  2.69089
  19  1.41003e-05
  20  6.77477e-06
  21  65.1519
  22  0.636383
  23  6.96044
  24  25.1559
  25  1.54915
  26  0.20196
  27  0.18571
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  6.833e+00  7.559e+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

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.217e+00  1.857e-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:  8.629e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.95e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 1.11e-05

TS (Fixed Index): 1.15
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 7.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203345/likelihoodResults_269913601_270172801_4FGL_J1159.0+0939_daily_bin118.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) = 8829.17877567
delta logL = 0.000835913326227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8829.17834164
delta logL = 0.001269950395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5748       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1683       1.0000          .0000       10.000    
     3 'Normalizat'    .86199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2175       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=   8829.178     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      247 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5730        9.7223        .15651E-03    .12220E-02
   2  Index         2.1689        .79036        .98878E-02    .29236E-03
   3  Normalizat    .86197        .19719        .30165E-03   -.51135E-03
   4  Prefactor     1.2175        .18447        .24132E-03   -.80123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57297
  Index      = 2.1689
  Normalizat = 0.861971
  Prefactor  = 1.21752
 **********
 **   18 **HESSE 
 **********

 FCN=   8829.178     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5730        9.0123        .62602E-05   -1.5195    
   2  Index         2.1689        .73329        .39551E-03   -.60191    
   3  Normalizat    .86197        .19720        .12066E-04   -.97810    
   4  Prefactor     1.2175        .18450        .48263E-04   -.85794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39795e-09
Minuit parameter uncertainties:
  1  9.01417
  2  0.737214
  3  0.197367
  4  0.184594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203345': 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) = 8829.17834121
delta logL = 0.00127038155188

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  6.573e+00  9.014e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.169e+00  7.372e-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.218e+00  1.846e-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:  8.620e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 179.751 9.660
Photon Index (Free Index): 2.17 +/- 0.74
Photon Flux (Free Index): 2.01e-08 +/- 2.46e-08
Energy Flux (Free Index): 9.56e-06 +/- 1.35e-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/203345/cmap_HighResolution_269913601_270172801_4FGL_J1159.0+0939_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', comment='SUCCESS', photon_flux='1.95e-08', energy_flux2='9.56e-06', photon_flux_error='2.16e-08', dlogl='1.27e-03', energy_flux='1.00e-05', photon_flux2='2.01e-08', job_status='DONE', time_completed='2021-09-04 18:07:43.963085', photon_index_error2='0.74', photon_index2='2.17', ts='1.15', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='7.03e-08', energy_flux_error2='1.35e-05', EG='0.86', time_epoch_completed='1630804063.96', return_code='0', job_id='203345', GAL2='1.22', EG2='0.86', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='2.46e-08', ts2='1.15', photon_index='2.13' WHERE bin_id='118' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:07:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 203345: <4FGL_J1159.0+0939_daily_bin118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin118 179.751 9.6603 269913601 270172801 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 :                                   957.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

