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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin693
RA = 179.751, Dec = 9.6603
tmin = 418953601, tmax = 419212801
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='207053', job_status='RUN', time_executed='2021-09-04 18:03:10.051390', time_epoch_executed='1630803790.05' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207053/ft1_4FGL_J1159.0+0939_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207053/ft2_4FGL_J1159.0+0939_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207053/ft1_4FGL_J1159.0+0939_daily_bin693.fits outfile=/scratch/kocevski/207053/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin693.fits ra=179.751 dec=9.6603 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.49
user 5.24
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207053/ft1_filtered_4FGL_J1159.0+0939_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/207053/ft2_4FGL_J1159.0+0939_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/207053/ltcube_418953601_419212801_4FGL_J1159.0+0939_daily_bin693.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/207053/ft2_4FGL_J1159.0+0939_daily_bin693.fits
.....................!
real 12.20
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207053/ft1_filtered_4FGL_J1159.0+0939_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/207053/ft2_4FGL_J1159.0+0939_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/207053/ltcube_418953601_419212801_4FGL_J1159.0+0939_daily_bin693.fits outfile=/scratch/kocevski/207053/expmap_418953601_419212801_4FGL_J1159.0+0939_daily_bin693.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/207053/ltcube_418953601_419212801_4FGL_J1159.0+0939_daily_bin693.fits
.....................!
real 190.38
user 185.78
sys 4.01

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/207053/ft1_filtered_4FGL_J1159.0+0939_daily_bin693.fits scfile=/scratch/kocevski/207053/ft2_4FGL_J1159.0+0939_daily_bin693.fits outfile=/scratch/kocevski/207053/cmap_418953601_419212801_4FGL_J1159.0+0939_daily_bin693.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/207053/ft1_filtered_4FGL_J1159.0+0939_daily_bin693.fits scfile=/scratch/kocevski/207053/ft2_4FGL_J1159.0+0939_daily_bin693.fits outfile=/scratch/kocevski/207053/cmap_HighResolution_418953601_419212801_4FGL_J1159.0+0939_daily_bin693.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1398       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .88749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12348E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.503       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25666E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.907       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10378E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10479E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11809E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .13268       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94145       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86136       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=   3705.502     FROM MIGRAD    STATUS=CONVERGED   1172 CALLS     3857 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5055        .15124E-02** at limit **
   2  Prefactor     .10000E-03    24.792        .18142E-02** at limit **
   3  Prefactor     4.5525        3.4505        .94914E-04   -.41982E-04
   4  Prefactor     .10000E-03    4.7911        .12976E-02** at limit **
   5  Prefactor     .10000E-03    36.439        .18142E-02** at limit **
   6  Prefactor     .10000E-03    38.704        .18142E-02** at limit **
   7  Prefactor     7.1386        9.7271        .15012E-03    .21318E-04
   8  Prefactor     .87651        35.234        .33124E-02   -.14142E-03
   9  Prefactor     .10000E-03    16.518        .18142E-02** at limit **
  10  Prefactor     .10000E-03    2.2278        .88157E-03** at limit **
  11  Prefactor     .10000E-03    65.664        .18142E-02** at limit **
  12  Prefactor     .10001E-03    78.868        .13278    ** at limit **
  13  Prefactor     70.472        37.993        .23904E-03    .12767E-03
  14  Prefactor     3.4250        3.1939        .99874E-04    .87780E-03
  15  Prefactor     .10000E-03    27.315        .16797E-02** at limit **
  16  Prefactor     .10000E-03    51.715        .18142E-02** at limit **
  17  Prefactor     .10026E-03    65.587        .42016E-02** at limit **
  18  norm          15.906        6.1458        .85484E-04    .36194E-03
  19  Prefactor     .10000E-03    56.076        .18142E-02** at limit **
  20  norm          .10000E-03    45.731        .18142E-02** at limit **
  21  Prefactor     .10000E-03    77.632        .18142E-02** at limit **
  22  norm          .10000E-03    .95883        .84626E-03** at limit **
  23  Prefactor     .10000E-03    24.191        .36285E-03** at limit **
  24  Prefactor     .10000E-03    29.700        .18142E-02** at limit **
  25  norm          .12818        6.6246        .13476E-02    .92852E-03
  26  Normalizat    .94134        .27155        .24895E-03    .54893E-03
  27  Prefactor     .86154        .23869        .23464E-03    .23673E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.13862
  Prefactor  = 0.876513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 70.4716
  Prefactor  = 3.42505
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100262
  norm       = 15.906
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.12818
  Normalizat = 0.941345
  Prefactor  = 0.861538
 **********
 **   18 **HESSE 
 **********

 FCN=   3705.502     FROM HESSE     STATUS=OK           474 CALLS     4331 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.5064        .30248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5525        3.4503        .37966E-05   -1.5281    
   4  Prefactor     .10000E-03    4.7917        .25951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.445        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1386        9.7263        .60049E-05   -1.5174    
   8  Prefactor     .87651        34.802        .13250E-03   -1.5521    
   9  Prefactor     .10000E-03    16.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2280        .17631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    65.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    80.451        .13044       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     70.472        37.959        .95617E-05   -1.4027    
  14  Prefactor     3.4250        3.1907        .39950E-05   -1.5338    
  15  Prefactor     .10000E-03    27.879        .33594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    51.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10026E-03    66.149        .84031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.906        6.1396        .34194E-05   -1.4910    
  19  Prefactor     .10000E-03    56.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    45.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    77.632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .96070        .16925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.193        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .12818        6.6046        .53905E-04   -1.5636    
  26  Normalizat    .94134        .27169        .49789E-04   -.95022    
  27  Prefactor     .86154        .23850        .46929E-04   -.97498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82384e-09
Minuit parameter uncertainties:
  1  5.87059e-06
  2  0.000123138
  3  3.45043
  4  8.09191e-06
  5  0.000206709
  6  0.00015962
  7  9.72842
  8  11.0525
  9  6.05968e-06
  10  1.7245e-05
  11  0.000274314
  12  0.00204831
  13  37.9721
  14  3.19083
  15  0.000365733
  16  0.000238223
  17  0.00833694
  18  6.1398
  19  0.00033962
  20  2.62668e-05
  21  0.000214874
  22  2.46226e-05
  23  1.7781e-05
  24  0.000183524
  25  1.8397
  26  0.272084
  27  0.238791
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  7.139e+00  9.728e+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:  8.615e-01  2.388e-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.413e-01  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/207053/likelihoodResults_418953601_419212801_4FGL_J1159.0+0939_daily_bin693.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) = 3705.50162852
delta logL = 0.000107117536118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3705.5015881
delta logL = 0.000147541225033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2225       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1160       1.0000          .0000       10.000    
     3 'Normalizat'    .94171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86144       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=   3705.502     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      219 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2355        507.65        .37313E-02    .73143E-04
   2  Index         2.1174        5.1085        .15557        .64960E-04
   3  Normalizat    .94165        .10398        .45432E-01    .25030E-05
   4  Prefactor     .86138        .82879E-01    .44512E-01   -.14892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.23547
  Index      = 2.11742
  Normalizat = 0.941652
  Prefactor  = 0.861377
 **********
 **   18 **HESSE 
 **********

 FCN=   3705.502     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2355        11.689        .14925E-03   -1.5170    
   2  Index         2.1174        .86949        .88051E-02   -.61446    
   3  Normalizat    .94165        .25733        .24891E-03   -.95012    
   4  Prefactor     .86138        .23373        .23467E-03   -.97504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41779e-11
Minuit parameter uncertainties:
  1  11.6923
  2  0.876193
  3  0.257668
  4  0.233997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207053': 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) = 3705.50158411
delta logL = 0.000151529536652

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  7.235e+00  1.169e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.117e+00  8.762e-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:  8.614e-01  2.340e-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.417e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.92
Ra Dec: 179.751 9.660

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/207053/cmap_HighResolution_418953601_419212801_4FGL_J1159.0+0939_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.92e-08', time_completed='2021-09-04 18:13:49.686333', job_id='207053', GAL2='0.86', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630804429.69', return_code2='0', ts='0.92', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.52e-04', ts2='0.92', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='693' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:13:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 207053: <4FGL_J1159.0+0939_daily_bin693> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin693> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 18:01:00 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:01:02 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:02 2021
Terminated at Sat Sep  4 18:13:50 2021
Results reported at Sat Sep  4 18:13:50 2021

Your job looked like:

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

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

