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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin655
RA = 179.751, Dec = 9.6603
tmin = 409104001, tmax = 409363201
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='207013', job_status='RUN', time_executed='2021-09-04 18:04:21.393182', time_epoch_executed='1630803861.39' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207013

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207013/ft1_4FGL_J1159.0+0939_daily_bin655.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207013/ft2_4FGL_J1159.0+0939_daily_bin655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207013/ft1_4FGL_J1159.0+0939_daily_bin655.fits outfile=/scratch/kocevski/207013/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin655.fits ra=179.751 dec=9.6603 rad=12.0 tmin=409104001.0 tmax=409363201.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.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207013/ft1_filtered_4FGL_J1159.0+0939_daily_bin655.fits" evtable="EVENTS" scfile=/scratch/kocevski/207013/ft2_4FGL_J1159.0+0939_daily_bin655.fits sctable="SC_DATA" outfile=/scratch/kocevski/207013/ltcube_409104001_409363201_4FGL_J1159.0+0939_daily_bin655.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/207013/ft2_4FGL_J1159.0+0939_daily_bin655.fits
.....................!
real 12.34
user 11.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207013/ft1_filtered_4FGL_J1159.0+0939_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/207013/ft2_4FGL_J1159.0+0939_daily_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/207013/ltcube_409104001_409363201_4FGL_J1159.0+0939_daily_bin655.fits outfile=/scratch/kocevski/207013/expmap_409104001_409363201_4FGL_J1159.0+0939_daily_bin655.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/207013/ltcube_409104001_409363201_4FGL_J1159.0+0939_daily_bin655.fits
.....................!
real 191.22
user 185.34
sys 5.27

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/207013/ft1_filtered_4FGL_J1159.0+0939_daily_bin655.fits scfile=/scratch/kocevski/207013/ft2_4FGL_J1159.0+0939_daily_bin655.fits outfile=/scratch/kocevski/207013/cmap_409104001_409363201_4FGL_J1159.0+0939_daily_bin655.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207013/ft1_filtered_4FGL_J1159.0+0939_daily_bin655.fits scfile=/scratch/kocevski/207013/ft2_4FGL_J1159.0+0939_daily_bin655.fits outfile=/scratch/kocevski/207013/cmap_HighResolution_409104001_409363201_4FGL_J1159.0+0939_daily_bin655.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.686       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9323       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    89.706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5312       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.700       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.322       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1231       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0633       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2714       1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.772       1.0000         .10000E-03   10000.    
    20 'norm      '    70.893       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2318       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.589       1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.706       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7132       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .52021       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4565       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=   4845.265     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3282 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2556       -.25423E-06** at limit **
   2  Prefactor     15.653        42.887        .52157E-05   -.35333E-04
   3  Prefactor     2.3865        2.3202        .74227E-07    .66498E-05
   4  Prefactor     6.9319        14.395        .10882E-05   -.17925E-04
   5  Prefactor     .10000E-03    11.433        .82052E-07** at limit **
   6  Prefactor     89.681        115.00        .24441E-05   -.15923E-04
   7  Prefactor     4.5299        11.512        .18644E-06   -.97701E-05
   8  Prefactor     .10000E-03    3.0054        .92425E-08** at limit **
   9  Prefactor     .10000E-03    9.6258        .32201E-08** at limit **
  10  Prefactor     11.699        6.9159        .29266E-07   -.14379E-05
  11  Prefactor     .10000E-03    27.022        .16832E-06** at limit **
  12  Prefactor     59.723        54.217       -.37531E-06   -.36061E-04
  13  Prefactor     28.325        26.113       -.57644E-06   -.10477E-05
  14  Prefactor     4.1246        3.8743        .12572E-06    .17267E-05
  15  Prefactor     .10000E-03    2.6762        .58232E-07** at limit **
  16  Prefactor     .10000E-03    16.406       -.14158E-06** at limit **
  17  Prefactor     2.0535        29.584        .76606E-05   -.38302E-04
  18  norm          1.2680        5.0205        .21226E-05    .14883E-03
  19  Prefactor     36.771        36.917        .28342E-07   -.13213E-04
  20  norm          70.924        61.997       -.39168E-05   -.16871E-04
  21  Prefactor     .10000E-03    62.627       -.37631E-06** at limit **
  22  norm          1.2320        .72075       -.57963E-07   -.61233E-03
  23  Prefactor     28.588        18.586        .20691E-07   -.92328E-05
  24  Prefactor     45.700        48.865        .85214E-06   -.99547E-05
  25  norm          1.7131        1.9891        .57474E-07   -.90216E-04
  26  Normalizat    .52036        .25700       -.12959E-05   -.45107E-04
  27  Prefactor     1.4565        .22214       -.69463E-06   -.74753E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.6526
  Prefactor  = 2.38651
  Prefactor  = 6.93192
  Prefactor  = 0.0001
  Prefactor  = 89.6811
  Prefactor  = 4.52989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6993
  Prefactor  = 0.0001
  Prefactor  = 59.7225
  Prefactor  = 28.3246
  Prefactor  = 4.12463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.05347
  norm       = 1.26804
  Prefactor  = 36.7712
  norm       = 70.9237
  Prefactor  = 0.0001
  norm       = 1.23196
  Prefactor  = 28.5884
  Prefactor  = 45.6999
  norm       = 1.7131
  Normalizat = 0.52036
  Prefactor  = 1.45652
 **********
 **   18 **HESSE 
 **********

 FCN=   4845.265     FROM HESSE     STATUS=OK           492 CALLS     3774 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2840        .17005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.653        42.639        .10113E-03   -1.4916    
   3  Prefactor     2.3865        2.3139        .10121E-03   -1.5399    
   4  Prefactor     6.9319        14.376        .76187E-03   -1.5181    
   5  Prefactor     .10000E-03    11.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     89.681        114.81        .42424E-04   -1.3811    
   7  Prefactor     4.5299        11.485        .18913E-03   -1.5282    
   8  Prefactor     .10000E-03    3.0070        .11784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.699        6.8963        .11712E-03   -1.5024    
  11  Prefactor     .10000E-03    27.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     59.723        54.054        .51916E-04   -1.4161    
  13  Prefactor     28.325        26.114        .75281E-04   -1.4643    
  14  Prefactor     4.1246        3.8531        .12411E-03   -1.5302    
  15  Prefactor     .10000E-03    2.7068        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0535        29.420        .14383E-02   -1.5421    
  18  norm          1.2680        4.9136        .24951E-03   -1.5483    
  19  Prefactor     36.771        36.899        .66091E-04   -1.4494    
  20  norm          70.924        61.716        .23839E-03   -1.4022    
  21  Prefactor     .10000E-03    62.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2320        .70903        .41280E-04   -1.5486    
  23  Prefactor     28.588        18.574        .74929E-04   -1.4638    
  24  Prefactor     45.700        48.799        .59305E-04   -1.4355    
  25  norm          1.7131        1.9667        .10091E-03   -1.5446    
  26  Normalizat    .52036        .28148        .38705E-03   -1.1148    
  27  Prefactor     1.4565        .24895        .22707E-03   -.78765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1564e-10
Minuit parameter uncertainties:
  1  2.03029e-05
  2  42.7217
  3  2.31398
  4  14.3829
  5  2.69735e-06
  6  115.098
  7  11.4909
  8  4.09191e-07
  9  4.52132e-06
  10  6.89678
  11  6.19189e-06
  12  54.0986
  13  26.1246
  14  3.85336
  15  3.27399e-06
  16  1.11337e-05
  17  15.5541
  18  4.9152
  19  36.9217
  20  61.7721
  21  2.18146e-05
  22  0.709036
  23  18.5782
  24  48.8416
  25  1.96675
  26  0.282254
  27  0.249153
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  4.530e+00  1.149e+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.457e+00  2.492e-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:  5.204e-01  2.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/207013/likelihoodResults_409104001_409363201_4FGL_J1159.0+0939_daily_bin655.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) = 4845.1806973
delta logL = 0.0839399799806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4845.16908796
delta logL = 0.0955493144202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1789       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6866       1.0000          .0000       10.000    
     3 'Normalizat'    .50342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4645       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=   4845.169     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      225 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1755        226.49        .56822E-02    .43404E-03
   2  Index         2.6865        6.2725        .14552        .86033E-04
   3  Normalizat    .50355        .66747E-01    .88739E-01    .59664E-04
   4  Prefactor     1.4644        .59653E-01    .51247E-01   -.14831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17554
  Index      = 2.68652
  Normalizat = 0.503549
  Prefactor  = 1.46443
 **********
 **   18 **HESSE 
 **********

 FCN=   4845.169     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1755        11.532        .20857E-03   -1.5352    
   2  Index         2.6865        1.6876        .91550E-02   -.48103    
   3  Normalizat    .50355        .26465        .39315E-03   -1.1225    
   4  Prefactor     1.4644        .24693        .22654E-03   -.78541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97426e-08
Minuit parameter uncertainties:
  1  11.5405
  2  1.73127
  3  0.265309
  4  0.247127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207013': 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) = 4845.16908768
delta logL = 0.0955495985172

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  3.176e+00  1.154e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.687e+00  1.731e+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:  1.464e+00  2.471e-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:  5.035e-01  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/207013/cmap_HighResolution_409104001_409363201_4FGL_J1159.0+0939_daily_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-09-04 18:15:54.224864', job_id='207013', GAL2='1.46', fit_tolerance='1e-08', EG2='0.50', EG='0.52', time_epoch_completed='1630804554.22', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='9.55e-02', ts2='0.39', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='655' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 207013: <4FGL_J1159.0+0939_daily_bin655> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin655> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 18:00:56 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:00:58 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:00:58 2021
Terminated at Sat Sep  4 18:15:55 2021
Results reported at Sat Sep  4 18:15:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin655 179.751 9.6603 409104001 409363201 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 :                                   690.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

