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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin217
RA = 179.751, Dec = 9.6603
tmin = 295574401, tmax = 295833601
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='203499', job_status='RUN', time_executed='2021-09-04 17:55:11.756551', time_epoch_executed='1630803311.76' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203499

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203499/ft1_4FGL_J1159.0+0939_daily_bin217.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203499/ft2_4FGL_J1159.0+0939_daily_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203499/ft1_4FGL_J1159.0+0939_daily_bin217.fits outfile=/scratch/kocevski/203499/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin217.fits ra=179.751 dec=9.6603 rad=12.0 tmin=295574401.0 tmax=295833601.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.33
user 2.14
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203499/ft1_filtered_4FGL_J1159.0+0939_daily_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/203499/ft2_4FGL_J1159.0+0939_daily_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/203499/ltcube_295574401_295833601_4FGL_J1159.0+0939_daily_bin217.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/203499/ft2_4FGL_J1159.0+0939_daily_bin217.fits
.....................!
real 12.06
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203499/ft1_filtered_4FGL_J1159.0+0939_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/203499/ft2_4FGL_J1159.0+0939_daily_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/203499/ltcube_295574401_295833601_4FGL_J1159.0+0939_daily_bin217.fits outfile=/scratch/kocevski/203499/expmap_295574401_295833601_4FGL_J1159.0+0939_daily_bin217.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/203499/ltcube_295574401_295833601_4FGL_J1159.0+0939_daily_bin217.fits
.....................!
real 192.52
user 187.67
sys 4.50

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/203499/ft1_filtered_4FGL_J1159.0+0939_daily_bin217.fits scfile=/scratch/kocevski/203499/ft2_4FGL_J1159.0+0939_daily_bin217.fits outfile=/scratch/kocevski/203499/cmap_295574401_295833601_4FGL_J1159.0+0939_daily_bin217.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203499/ft1_filtered_4FGL_J1159.0+0939_daily_bin217.fits scfile=/scratch/kocevski/203499/ft2_4FGL_J1159.0+0939_daily_bin217.fits outfile=/scratch/kocevski/203499/cmap_HighResolution_295574401_295833601_4FGL_J1159.0+0939_daily_bin217.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/203499/ft1_filtered_4FGL_J1159.0+0939_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/203499/ft2_4FGL_J1159.0+0939_daily_bin217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/203499/Model_4FGL_J1159.0+0939_daily_bin217.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/203499/ft1_filtered_4FGL_J1159.0+0939_daily_bin217.fits.....................!
real 56.89
user 55.60
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4250       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1720       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.013       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.185       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0932       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    81.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.496       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9617       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.065       1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.415       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5341       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.108       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0453       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51242E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1878       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.757       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9590       1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2099       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .67220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5878.933     FROM MIGRAD    STATUS=CONVERGED     69 CALLS     3176 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.4096       -.14571E-06** at limit **
   2  Prefactor     .10000E-03    14.369       -.69508E-05** at limit **
   3  Prefactor     1.4250        1.4325        .17884E-07   -.13051E-03
   4  Prefactor     8.1636        1.0773        .55910E-06    .46175E-03
   5  Prefactor     30.033        5.0019        .10124E-04   -.58046E-02
   6  Prefactor     .10222E-03    36.879       -.95875E-04** at limit **
   7  Prefactor     25.180        1.0989       -.90582E-06    .25861E-03
   8  Prefactor     5.6537        1.6120       -.62159E-05   -.50557E-02
   9  Prefactor     8.1003        1.6636        .52279E-05   -.22830E-03
  10  Prefactor     .10000E-03    1.2125        .39375E-06** at limit **
  11  Prefactor     81.225        1.0981       -.57676E-06    .21975E-02
  12  Prefactor     .10101E-03    31.611        .87738E-04** at limit **
  13  Prefactor     13.504        1.6256        .38695E-05   -.47386E-03
  14  Prefactor     2.6149        2.3095       -.16772E-06    .12522E-04
  15  Prefactor     3.9618        2.7063        .24163E-06    .14478E-03
  16  Prefactor     10.064        1.0154       -.44296E-06   -.12255E-04
  17  Prefactor     54.414        1.0872       -.66636E-06    .67995E-03
  18  norm          5.5317        3.9503       -.11192E-05   -.10316E-03
  19  Prefactor     31.103        1.8695       -.32308E-05    .30797E-02
  20  norm          6.0394        2.2761       -.95005E-05    .21496E-02
  21  Prefactor     .48345E-01    5.8242       -.54002E-04    .25498E-02
  22  norm          4.1877        .89246        .13964E-06   -.54129E-03
  23  Prefactor     14.761        1.1285        .15108E-05   -.16201E-02
  24  Prefactor     8.9422        5.5194       -.20660E-04    .53684E-02
  25  norm          .10000E-03    1.5815        .49698E-07** at limit **
  26  Normalizat    1.2099        .23422        .42553E-05    .19203E-03
  27  Prefactor     .67209        .20839       -.27970E-05    .49267E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42497
  Prefactor  = 8.16359
  Prefactor  = 30.033
  Prefactor  = 0.000102216
  Prefactor  = 25.1801
  Prefactor  = 5.65371
  Prefactor  = 8.10035
  Prefactor  = 0.0001
  Prefactor  = 81.225
  Prefactor  = 0.00010101
  Prefactor  = 13.5037
  Prefactor  = 2.61492
  Prefactor  = 3.96185
  Prefactor  = 10.0645
  Prefactor  = 54.4144
  norm       = 5.53172
  Prefactor  = 31.1029
  norm       = 6.03942
  Prefactor  = 0.0483452
  norm       = 4.18767
  Prefactor  = 14.761
  Prefactor  = 8.9422
  norm       = 0.0001
  Normalizat = 1.20994
  Prefactor  = 0.672088
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.933     FROM HESSE     STATUS=OK           568 CALLS     3744 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3640        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.340        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4250        1.4499        .90544E-02   -1.5469    
   4  Prefactor     8.1636        12.773        .35062E-02   -1.5136    
   5  Prefactor     30.033        21.391        .18283E-02   -1.4611    
   6  Prefactor     .10222E-03    40.265        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.180        13.382        .19956E-02   -1.4704    
   8  Prefactor     5.6537        7.0216        .42222E-02   -1.5232    
   9  Prefactor     8.1003        18.805        .35233E-02   -1.5139    
  10  Prefactor     .10000E-03    1.2071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     81.225        88.200        .11141E-02   -1.3903    
  12  Prefactor     .10101E-03    33.129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.504        18.032        .27258E-02   -1.4973    
  14  Prefactor     2.6149        2.3222        .63063E-02   -1.5385    
  15  Prefactor     3.9618        2.7105        .50663E-02   -1.5310    
  16  Prefactor     10.064        16.146        .31575E-02   -1.5073    
  17  Prefactor     54.414        17.484        .13594E-02   -1.4231    
  18  norm          5.5317        4.3478        .42697E-02   -1.5238    
  19  Prefactor     31.103        32.119        .17960E-02   -1.4592    
  20  norm          6.0394        132.15        .40825E-02   -1.5216    
  21  Prefactor     .48345E-01    101.69        .25582       -1.5664    
  22  norm          4.1877        .93579        .49234E-02   -1.5299    
  23  Prefactor     14.761        11.527        .26066E-02   -1.4939    
  24  Prefactor     8.9422        29.500        .33477E-02   -1.5110    
  25  norm          .10000E-03    .93719        .28459E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2099        .20549        .57087E-01   -.86296    
  27  Prefactor     .67209        .17684        .66722E-01   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0217e-06
Minuit parameter uncertainties:
  1  4.98653e-05
  2  0.000162775
  3  1.44993
  4  12.7771
  5  21.3965
  6  0.0189056
  7  13.3835
  8  7.02265
  9  18.8183
  10  1.27333e-05
  11  88.3428
  12  0.0115741
  13  18.0393
  14  2.3223
  15  2.7106
  16  16.1534
  17  17.486
  18  4.34802
  19  32.1366
  20  56.6428
  21  4.43744
  22  0.935796
  23  11.5288
  24  29.5479
  25  8.28777e-06
  26  0.205628
  27  0.17699
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.518e+01  1.338e+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:  6.721e-01  1.770e-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.210e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.69
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 7.19e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 1.96e-05

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) = 5878.92373749
delta logL = 0.00959814232374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5878.92011828
delta logL = 0.0132173521079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.408       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0656       1.0000          .0000       10.000    
     3 'Normalizat'    1.2160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66907       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=   5878.920     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      250 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.416        15.967        .77955E-04    .96719E-04
   2  Index         2.0657        .41704        .52104E-02    .33127E-03
   3  Normalizat    1.2159        .23475        .25195E-03    .55998E-04
   4  Prefactor     .66914        .20831        .29586E-03   -.70666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4158
  Index      = 2.06567
  Normalizat = 1.21589
  Prefactor  = 0.66914
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.920     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.416        15.718        .15591E-04   -1.4680    
   2  Index         2.0657        .41031        .10421E-02   -.62718    
   3  Normalizat    1.2159        .23488        .10078E-04   -.86113    
   4  Prefactor     .66914        .20847        .11834E-04   -1.0475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15332e-10
Minuit parameter uncertainties:
  1  15.7203
  2  0.411012
  3  0.235082
  4  0.208708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203499': 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) = 5878.92011794
delta logL = 0.0132176889983

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.642e+01  1.572e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.066e+00  4.110e-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:  6.691e-01  2.087e-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.216e+00  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.65
Ra Dec: 179.751 9.660
Photon Index (Free Index): 2.07 +/- 0.41
Photon Flux (Free Index): 6.69e-08 +/- 4.72e-08
Energy Flux (Free Index): 3.96e-05 +/- 2.80e-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/203499/cmap_HighResolution_295574401_295833601_4FGL_J1159.0+0939_daily_bin217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.19e-08', energy_flux2='3.96e-05', photon_flux_error='3.82e-08', dlogl='1.32e-02', energy_flux='3.68e-05', photon_flux2='6.69e-08', job_status='DONE', time_completed='2021-09-04 18:06:58.735800', photon_index_error2='0.41', photon_index2='2.07', ts='14.69', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.21', time_epoch_completed='1630804018.74', return_code='0', job_id='203499', GAL2='0.67', EG2='1.22', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='4.72e-08', ts2='14.65', photon_index='2.13' WHERE bin_id='217' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:06:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 203499: <4FGL_J1159.0+0939_daily_bin217> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin217 179.751 9.6603 295574401 295833601 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 :                                   706.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

