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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin216
RA = 179.751, Dec = 9.6603
tmin = 295315201, tmax = 295574401
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='203498', job_status='RUN', time_executed='2021-09-04 17:54:37.624449', time_epoch_executed='1630803277.62' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203498/ft1_4FGL_J1159.0+0939_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203498/ft2_4FGL_J1159.0+0939_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203498/ft1_4FGL_J1159.0+0939_daily_bin216.fits outfile=/scratch/kocevski/203498/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin216.fits ra=179.751 dec=9.6603 rad=12.0 tmin=295315201.0 tmax=295574401.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.36
user 2.12
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/203498/ft2_4FGL_J1159.0+0939_daily_bin216.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/203498/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin216.fits evtable="EVENTS" outfile="/scratch/kocevski/203498/ft1_filtered_4FGL_J1159.0+0939_daily_bin216.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/203498/ft1_filtered_4FGL_J1159.0+0939_daily_bin216.fits" evtable="EVENTS" scfile=/scratch/kocevski/203498/ft2_4FGL_J1159.0+0939_daily_bin216.fits sctable="SC_DATA" outfile=/scratch/kocevski/203498/ltcube_295315201_295574401_4FGL_J1159.0+0939_daily_bin216.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/203498/ft2_4FGL_J1159.0+0939_daily_bin216.fits
.....................!
real 12.12
user 11.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203498/ft1_filtered_4FGL_J1159.0+0939_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/203498/ft2_4FGL_J1159.0+0939_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/203498/ltcube_295315201_295574401_4FGL_J1159.0+0939_daily_bin216.fits outfile=/scratch/kocevski/203498/expmap_295315201_295574401_4FGL_J1159.0+0939_daily_bin216.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/203498/ltcube_295315201_295574401_4FGL_J1159.0+0939_daily_bin216.fits
.....................!
real 191.04
user 185.68
sys 4.95

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/203498/ft1_filtered_4FGL_J1159.0+0939_daily_bin216.fits scfile=/scratch/kocevski/203498/ft2_4FGL_J1159.0+0939_daily_bin216.fits outfile=/scratch/kocevski/203498/cmap_295315201_295574401_4FGL_J1159.0+0939_daily_bin216.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203498/ft1_filtered_4FGL_J1159.0+0939_daily_bin216.fits scfile=/scratch/kocevski/203498/ft2_4FGL_J1159.0+0939_daily_bin216.fits outfile=/scratch/kocevski/203498/cmap_HighResolution_295315201_295574401_4FGL_J1159.0+0939_daily_bin216.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10430E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58258       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46210       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11351E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7967       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1903       1.0000         .10000E-03   10000.    
    18 'norm      '    12.825       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10694E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.275       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5168       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.2787       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0254       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2041       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=   6449.112     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3369 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    32.526        .17832E-05** at limit **
   2  Prefactor     .10000E-03    27.098        .52159E-06** at limit **
   3  Prefactor     .10000E-03    1.2619        .15710E-06** at limit **
   4  Prefactor     .10000E-03    4.1581        .99674E-07** at limit **
   5  Prefactor     .10000E-03    8.1595        .50247E-07** at limit **
   6  Prefactor     .10000E-03    51.053        .12192E-06** at limit **
   7  Prefactor     22.518        13.290        .67792E-07   -.57585E-04
   8  Prefactor     .58125        7.6001        .60640E-06   -.63185E-04
   9  Prefactor     .10000E-03    32.986        .56492E-06** at limit **
  10  Prefactor     .46313        3.1527        .12918E-06   -.12720E-03
  11  Prefactor     .10000E-03    132.45        .30594E-06** at limit **
  12  Prefactor     13.095        42.015       -.92657E-06   -.62312E-04
  13  Prefactor     .10000E-03    12.022        .67808E-07** at limit **
  14  Prefactor     .10000E-03    3.2678       -.93168E-06** at limit **
  15  Prefactor     7.7969        4.2531        .17703E-05    .13303E-02
  16  Prefactor     .10000E-03    11.203       -.10888E-06** at limit **
  17  Prefactor     8.1921        13.255        .22809E-06   -.61761E-04
  18  norm          12.823        5.5110        .10808E-06   -.11606E-02
  19  Prefactor     .10000E-03    18.732       -.78597E-06** at limit **
  20  norm          .14582E-03    40.776        .72068E-05** at limit **
  21  Prefactor     45.988        125.15       -.17925E-05   -.66510E-04
  22  norm          4.5165        1.0342       -.47503E-08   -.25602E-02
  23  Prefactor     .10000E-03    5.1577        .75252E-07** at limit **
  24  Prefactor     .10000E-03    12.197        .11017E-06** at limit **
  25  norm          3.2787        2.0067        .38140E-07   -.32196E-03
  26  Normalizat    1.0257        .20929       -.89611E-07   -.26405E-03
  27  Prefactor     1.2038        .18500       -.16636E-05   -.31264E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5183
  Prefactor  = 0.581249
  Prefactor  = 0.0001
  Prefactor  = 0.463134
  Prefactor  = 0.0001
  Prefactor  = 13.0954
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.79686
  Prefactor  = 0.0001
  Prefactor  = 8.19213
  norm       = 12.8231
  Prefactor  = 0.0001
  norm       = 0.00014582
  Prefactor  = 45.9884
  norm       = 4.51651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27872
  Normalizat = 1.02568
  Prefactor  = 1.20381
 **********
 **   18 **HESSE 
 **********

 FCN=   6449.112     FROM HESSE     STATUS=OK           496 CALLS     3865 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    33.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8371        .17541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1757        .15991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    51.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.518        13.290        .84414E-04   -1.4759    
   8  Prefactor     .58125        25.961        .40484E-02   -1.5555    
   9  Prefactor     .10000E-03    33.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .46313        6.8150        .26843E-02   -1.5572    
  11  Prefactor     .10000E-03    132.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.095        41.473        .11070E-03   -1.4984    
  13  Prefactor     .10000E-03    12.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5124        .28738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7969        4.3264        .58231E-03   -1.5149    
  16  Prefactor     .10000E-03    11.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1921        13.240        .14009E-03   -1.5135    
  18  norm          12.823        5.5300        .10661E-03   -1.4992    
  19  Prefactor     .10000E-03    18.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .14582E-03    33.211        .15016       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.988        125.76        .29471E-03   -1.4351    
  22  norm          4.5165        1.0383        .34392E-04   -1.5283    
  23  Prefactor     .10000E-03    5.2064        .17811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.2787        2.0054        .84889E-04   -1.5346    
  26  Normalizat    1.0257        .24899        .29847E-03   -.92175    
  27  Prefactor     1.2038        .21954        .25757E-03   -.86214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50576e-08
Minuit parameter uncertainties:
  1  0.000250108
  2  7.36118e-05
  3  3.30572e-05
  4  4.79227e-06
  5  4.52256e-06
  6  4.53873e-05
  7  13.2918
  8  7.77201
  9  5.51323e-05
  10  3.55326
  11  5.5998e-05
  12  41.5649
  13  4.60995e-06
  14  0.000105057
  15  4.32655
  16  4.18193e-06
  17  13.2444
  18  5.53022
  19  4.89344e-05
  20  0.0780624
  21  126.496
  22  1.03829
  23  5.46403e-06
  24  1.14468e-05
  25  2.00544
  26  0.24927
  27  0.219707
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.252e+01  1.329e+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.204e+00  2.197e-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.026e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.68
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.95e-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) = 6448.92301246
delta logL = 0.189364018464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6448.92249691
delta logL = 0.189879573717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.365       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8830       1.0000          .0000       10.000    
     3 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6448.922     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      276 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.343        415.10        .18806E-02    .13481E-03
   2  Index         1.8823        5.9231        .16050        .54228E-04
   3  Normalizat    1.0441        .14835        .66932E-01    .68467E-05
   4  Prefactor     1.1919        .99119E-01    .58476E-01   -.23794E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3426
  Index      = 1.88228
  Normalizat = 1.04409
  Prefactor  = 1.19187
 **********
 **   18 **HESSE 
 **********

 FCN=   6448.922     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.343        17.997        .37611E-03   -1.4643    
   2  Index         1.8823        .39030        .59444E-02   -.67327    
   3  Normalizat    1.0441        .23564        .29609E-03   -.91568    
   4  Prefactor     1.1919        .21822        .25858E-03   -.86582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89886e-10
Minuit parameter uncertainties:
  1  18.0003
  2  0.390954
  3  0.235874
  4  0.218389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203498': 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) = 6448.92249281
delta logL = 0.189883675542

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.834e+01  1.800e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.882e+00  3.910e-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.192e+00  2.184e-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.044e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.02
Ra Dec: 179.751 9.660
Photon Index (Free Index): 1.88 +/- 0.39
Photon Flux (Free Index): 5.26e-08 +/- 3.67e-08
Energy Flux (Free Index): 4.96e-05 +/- 4.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/203498/cmap_HighResolution_295315201_295574401_4FGL_J1159.0+0939_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='4.96e-05', photon_flux_error='3.79e-08', dlogl='1.90e-01', energy_flux='3.30e-05', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-09-04 18:07:09.334907', photon_index_error2='0.39', photon_index2='1.88', ts='6.68', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='4.59e-05', EG='1.03', time_epoch_completed='1630804029.33', return_code='0', job_id='203498', GAL2='1.19', EG2='1.04', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='3.67e-08', ts2='7.02', photon_index='2.13' WHERE bin_id='216' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:07:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 203498: <4FGL_J1159.0+0939_daily_bin216> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin216> 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) <bullet0232>, 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:07:10 2021
Results reported at Sat Sep  4 18:07:10 2021

Your job looked like:

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

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

