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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin728
RA = 179.751, Dec = 9.6603
tmin = 428025601, tmax = 428284801
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='207103', job_status='RUN', time_executed='2021-09-04 18:03:33.798435', time_epoch_executed='1630803813.8' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207103/ft1_4FGL_J1159.0+0939_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207103/ft2_4FGL_J1159.0+0939_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207103/ft1_4FGL_J1159.0+0939_daily_bin728.fits outfile=/scratch/kocevski/207103/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin728.fits ra=179.751 dec=9.6603 rad=12.0 tmin=428025601.0 tmax=428284801.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 4.25
user 4.05
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207103/ft1_filtered_4FGL_J1159.0+0939_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/207103/ft2_4FGL_J1159.0+0939_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/207103/ltcube_428025601_428284801_4FGL_J1159.0+0939_daily_bin728.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/207103/ft2_4FGL_J1159.0+0939_daily_bin728.fits
.....................!
real 9.28
user 8.97
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207103/ft1_filtered_4FGL_J1159.0+0939_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/207103/ft2_4FGL_J1159.0+0939_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/207103/ltcube_428025601_428284801_4FGL_J1159.0+0939_daily_bin728.fits outfile=/scratch/kocevski/207103/expmap_428025601_428284801_4FGL_J1159.0+0939_daily_bin728.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/207103/ltcube_428025601_428284801_4FGL_J1159.0+0939_daily_bin728.fits
.....................!
real 141.35
user 137.71
sys 3.40

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/207103/ft1_filtered_4FGL_J1159.0+0939_daily_bin728.fits scfile=/scratch/kocevski/207103/ft2_4FGL_J1159.0+0939_daily_bin728.fits outfile=/scratch/kocevski/207103/cmap_428025601_428284801_4FGL_J1159.0+0939_daily_bin728.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.751 yref=9.6603 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.45
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207103/ft1_filtered_4FGL_J1159.0+0939_daily_bin728.fits scfile=/scratch/kocevski/207103/ft2_4FGL_J1159.0+0939_daily_bin728.fits outfile=/scratch/kocevski/207103/cmap_HighResolution_428025601_428284801_4FGL_J1159.0+0939_daily_bin728.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.751 yref=9.6603 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9377       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.021       1.0000         .10000E-03   10000.    
     6 'Prefactor '    100.32       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2983       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20349E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16747E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.8243       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10657E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0771       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.626       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0376       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81318       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=   3742.584     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3759 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3390        10.003        .17881E-06   -.35144E-05
   2  Prefactor     .10000E-03    17.527       -.58155E-07** at limit **
   3  Prefactor     1.9377        2.2692        .11881E-07    .50614E-05
   4  Prefactor     .10000E-03    2.8250        .33572E-07** at limit **
   5  Prefactor     27.020        24.022       -.18081E-07    .17785E-05
   6  Prefactor     100.14        163.89       -.43924E-05   -.57450E-04
   7  Prefactor     8.3015        13.386        .22012E-05   -.25416E-04
   8  Prefactor     .10000E-03    3.0398       -.82681E-07** at limit **
   9  Prefactor     12.496        15.923       -.29623E-06   -.12492E-04
  10  Prefactor     .10000E-03    2.8307       -.36888E-06** at limit **
  11  Prefactor     .10000E-03    39.706        .50945E-07** at limit **
  12  Prefactor     .10000E-03    38.321       -.17614E-05** at limit **
  13  Prefactor     28.093        25.124        .14337E-07   -.44233E-05
  14  Prefactor     .10000E-03    .96762        .79083E-07** at limit **
  15  Prefactor     .10000E-03    1.0308        .80558E-07** at limit **
  16  Prefactor     .10000E-03    445.50       -.87198E-05** at limit **
  17  Prefactor     .10000E-03    20.748        .36776E-06** at limit **
  18  norm          9.8272        5.9104        .34675E-06    .13407E-03
  19  Prefactor     .10000E-03    20.146        .34814E-06** at limit **
  20  norm          .10000E-03    36.813       -.42505E-06** at limit **
  21  Prefactor     .10000E-03    149.99        .14846E-05** at limit **
  22  norm          1.0773        .71040       -.89774E-07    .19401E-05
  23  Prefactor     .10000E-03    9.0664        .29665E-06** at limit **
  24  Prefactor     42.624        36.535        .27712E-06   -.96699E-05
  25  norm          .10000E-03    .83238       -.54784E-06** at limit **
  26  Normalizat    1.0377        .27661       -.66631E-05    .10440E-04
  27  Prefactor     .81325        .23556        .60099E-05    .24169E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33896
  Prefactor  = 0.0001
  Prefactor  = 1.93765
  Prefactor  = 0.0001
  Prefactor  = 27.0202
  Prefactor  = 100.145
  Prefactor  = 8.30151
  Prefactor  = 0.0001
  Prefactor  = 12.4956
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.8272
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07727
  Prefactor  = 0.0001
  Prefactor  = 42.6242
  norm       = 0.0001
  Normalizat = 1.03765
  Prefactor  = 0.813247
 **********
 **   18 **HESSE 
 **********

 FCN=   3742.584     FROM HESSE     STATUS=OK           492 CALLS     4251 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3390        9.9954        .15942E-03   -1.5204    
   2  Prefactor     .10000E-03    17.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9377        2.2595        .96760E-04   -1.5430    
   4  Prefactor     .10000E-03    2.8267        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.020        24.023        .77068E-04   -1.4668    
   6  Prefactor     100.14        165.91        .20069E-03   -1.3703    
   7  Prefactor     8.3015        13.397        .69584E-03   -1.5132    
   8  Prefactor     .10000E-03    3.0426        .10416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.496        15.920        .11332E-03   -1.5001    
  10  Prefactor     .10000E-03    9.4967        .19640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.093        25.113        .75589E-04   -1.4647    
  14  Prefactor     .10000E-03    .97753        .58767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.0372        .60658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    429.42        .79911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.8272        5.5874        .98155E-04   -1.5081    
  19  Prefactor     .10000E-03    20.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    36.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    150.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0773        .70104        .38457E-04   -1.5500    
  23  Prefactor     .10000E-03    9.1086        .17981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     42.624        36.528        .61402E-04   -1.4401    
  25  norm          .10000E-03    1.4312        .10453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0377        .28019        .24715E-03   -.91780    
  27  Prefactor     .81325        .23970        .24695E-03   -.99242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46564e-10
Minuit parameter uncertainties:
  1  9.99802
  2  8.25417e-06
  3  2.25957
  4  1.06282e-06
  5  24.0314
  6  166.683
  7  13.4018
  8  2.87196e-06
  9  15.9256
  10  0.000368109
  11  1.83649e-05
  12  7.74921e-05
  13  25.1221
  14  8.06874e-07
  15  7.27267e-07
  16  0.000374162
  17  2.0823e-05
  18  5.58773
  19  2.97392e-05
  20  0.000116655
  21  0.000358121
  22  0.701042
  23  8.28656e-06
  24  36.547
  25  2.52068e-05
  26  0.280589
  27  0.24001
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  8.302e+00  1.340e+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:  8.132e-01  2.400e-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.038e+00  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/207103/likelihoodResults_428025601_428284801_4FGL_J1159.0+0939_daily_bin728.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): 102
logL (Free Index) = 3742.09815065
delta logL = 0.485416599449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3741.95407569
delta logL = 0.629491563597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.3269       1.0000          .0000       10.000    
     3 'Normalizat'    .96551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87053       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=   3741.954     FROM MIGRAD    STATUS=CONVERGED    295 CALLS      709 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .52784E-02    .31860E-03** at limit **
   2  Index         7.3266        2.7668        .11230       -.17325E-04
   3  Normalizat    .96585        .58450E-01    .45733E-01   -.14127E-03
   4  Prefactor     .87033        .52102E-01    .44628E-01   -.15102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.32659
  Normalizat = 0.965852
  Prefactor  = 0.870326
 **********
 **   18 **HESSE 
 **********

 FCN=   3741.954     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      748 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .34672E-01    .15756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.3266        7.7552        .43774E-02    .48399    
   3  Normalizat    .96585        .13649        .25482E-03   -.94183    
   4  Prefactor     .87033        .12238        .23981E-03   -.97186    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.42621e-09
Minuit parameter uncertainties:
  1  6.89602e-07
  2  5.19701
  3  0.136542
  4  0.12242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207103': 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): 102
logL (Free Index) = 3741.95407126
delta logL = 0.629495988886

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.896e-07  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  7.327e+00  5.197e+00  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:  8.703e-01  1.224e-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:  9.659e-01  1.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 179.751 9.660
Photon Index (Free Index): 7.33 +/- 5.20
Photon Flux (Free Index): 6.73e-08 +/- 8.79e-07
Energy Flux (Free Index): 7.96e-06 +/- 1.03e-04

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/207103/cmap_HighResolution_428025601_428284801_4FGL_J1159.0+0939_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', comment='SUCCESS', energy_flux2='7.96e-06', dlogl='6.29e-01', photon_flux2='6.73e-08', job_status='DONE', time_completed='2021-09-04 18:11:42.656579', photon_index_error2='5.20', photon_index2='7.33', ts='0.53', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.03e-04', EG='1.04', time_epoch_completed='1630804302.66', return_code='0', job_id='207103', GAL2='0.87', EG2='0.97', return_code2='102', photon_flux_error2='8.79e-07', ts2='1.87', photon_index='2.13' WHERE bin_id='728' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:11:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 207103: <4FGL_J1159.0+0939_daily_bin728> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin728> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 18:01:04 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:01:06 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:01:06 2021
Terminated at Sat Sep  4 18:11:43 2021
Results reported at Sat Sep  4 18:11:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin728 179.751 9.6603 428025601 428284801 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 :                                   487.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            639 sec.

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

