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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1005
RA = 179.811, Dec = -22.4605
tmin = 499824001, tmax = 500083201
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='217644', job_status='RUN', time_executed='2021-09-04 18:32:34.899620', time_epoch_executed='1630805554.9' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217644/ft1_4FGL_J1159.2-2227_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217644/ft1_4FGL_J1159.2-2227_daily_bin1005.fits outfile=/scratch/kocevski/217644/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1005.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=499824001.0 tmax=500083201.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.18
user 4.94
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.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/217644/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/217644/ft1_filtered_4FGL_J1159.2-2227_daily_bin1005.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217644/ft1_filtered_4FGL_J1159.2-2227_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/217644/ltcube_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.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/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits
.....................!
real 11.91
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217644/ft1_filtered_4FGL_J1159.2-2227_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/217644/ltcube_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.fits outfile=/scratch/kocevski/217644/expmap_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.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/217644/ltcube_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.fits
.....................!
real 192.85
user 188.32
sys 4.17

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.2-2227 @ 179.811 -22.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217644/ft1_filtered_4FGL_J1159.2-2227_daily_bin1005.fits scfile=/scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits outfile=/scratch/kocevski/217644/cmap_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.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.811 yref=-22.4605 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217644/ft1_filtered_4FGL_J1159.2-2227_daily_bin1005.fits scfile=/scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits outfile=/scratch/kocevski/217644/cmap_HighResolution_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.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.811 yref=-22.4605 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217644/ft1_filtered_4FGL_J1159.2-2227_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217644/Model_4FGL_J1159.2-2227_daily_bin1005.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/217644/ft1_filtered_4FGL_J1159.2-2227_daily_bin1005.fits.....................!
real 69.95
user 68.57
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217644/ft1_filtered_4FGL_J1159.2-2227_daily_bin1005.fits', '/scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits', expMap='/scratch/kocevski/217644/expmap_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.fits', expCube='/scratch/kocevski/217644/ltcube_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217644/Model_4FGL_J1159.2-2227_daily_bin1005.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.2-2227'

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  6.706e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217644/ft1_filtered_4FGL_J1159.2-2227_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/217644/ft2_4FGL_J1159.2-2227_daily_bin1005.fits
Exposure map: /scratch/kocevski/217644/expmap_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.fits
Exposure cube: /scratch/kocevski/217644/ltcube_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217644/Model_4FGL_J1159.2-2227_daily_bin1005.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) = 8319.01920091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.850       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2948       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.776       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .85430E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13298E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.363       1.0000         .10000E-03   10000.    
    11 'norm      '    13.037       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8062       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6478       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8878       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.302       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3727       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8319.018     FROM MIGRAD    STATUS=CONVERGED     82 CALLS     2399 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.850        1.0023       -.41378E-07    .41972E-03
   2  Prefactor     .10000E-03    4.8329       -.15399E-04** at limit **
   3  Prefactor     7.2957        1.0034        .33923E-07   -.14437E-04
   4  Prefactor     38.776        1.0011       -.32750E-07    .20100E-03
   5  norm          .10000E-03    .61190       -.30464E-06** at limit **
   6  Prefactor     .10000E-03    .89712        .64640E-06** at limit **
   7  Prefactor     .10000E-03    6.9545       -.66100E-05** at limit **
   8  Prefactor     .10000E-03    5.6843        .83281E-06** at limit **
   9  Prefactor     .10000E-03    7.5968        .20963E-04** at limit **
  10  Prefactor     20.371        1.3129        .56428E-06   -.13858E-02
  11  norm          13.037        1.0009       -.14129E-07    .30669E-04
  12  Prefactor     4.8042        1.1642        .24536E-06   -.11554E-03
  13  norm          2.3981        2.9354        .49420E-06    .10706E-03
  14  Prefactor     3.6479        3.6510       -.85341E-06    .51395E-04
  15  Prefactor     .10001E-03    5.5996       -.17340E-04** at limit **
  16  Prefactor     .10002E-03    64.607       -.13467E-04** at limit **
  17  Prefactor     26.275        1.0011        .20830E-07   -.91848E-04
  18  Prefactor     .10002E-03    3.5169       -.47688E-06** at limit **
  19  Prefactor     .10000E-03    14.626        .19325E-04** at limit **
  20  Prefactor     .10000E-03    1.8494       -.39003E-06** at limit **
  21  Prefactor     7.8878        2.5955        .30946E-08   -.20810E-03
  22  Prefactor     24.302        1.0006        .13476E-07   -.48916E-04
  23  norm          .10000E-03    .50028       -.28482E-07** at limit **
  24  Normalizat    1.3726        .23801        .97927E-06    .19895E-04
  25  Prefactor     .93472        .12952        .41663E-06    .29495E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.8496
  Prefactor  = 0.000100001
  Prefactor  = 7.29573
  Prefactor  = 38.7759
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 20.3713
  norm       = 13.0371
  Prefactor  = 4.80423
  norm       = 2.39813
  Prefactor  = 3.64791
  Prefactor  = 0.000100007
  Prefactor  = 0.000100019
  Prefactor  = 26.2747
  Prefactor  = 0.000100016
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 7.88777
  Prefactor  = 24.3023
  norm       = 0.0001
  Normalizat = 1.3726
  Prefactor  = 0.934723
 **********
 **   18 **HESSE 
 **********

 FCN=   8319.018     FROM HESSE     STATUS=OK           493 CALLS     2892 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.850        54.601        .12755E-02   -1.4133    
   2  Prefactor     .10000E-03    11.422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2957        8.2192        .37126E-02   -1.5168    
   4  Prefactor     38.776        35.231        .16092E-02   -1.4462    
   5  norm          .10000E-03    .38467        .22719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9295        .69688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.371        20.858        .22190E-02   -1.4805    
  11  norm          13.037        14.929        .27734E-02   -1.4986    
  12  Prefactor     4.8042        14.531        .45877E-02   -1.5270    
  13  norm          2.3981        4.3047        .66122E-02   -1.5398    
  14  Prefactor     3.6479        3.6705        .52878E-02   -1.5326    
  15  Prefactor     .10001E-03    12.048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    63.749        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.275        16.376        .19538E-02   -1.4682    
  18  Prefactor     .10002E-03    10.275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8475        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8878        2.5959        .35692E-02   -1.5146    
  22  Prefactor     24.302        12.962        .20314E-02   -1.4722    
  23  norm          .10000E-03    .27645        .26512E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3726        .20495        .68345E-01   -.81424    
  25  Prefactor     .93472        .10917        .45446E-01   -.94938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23719e-08
Minuit parameter uncertainties:
  1  54.6452
  2  0.000170913
  3  8.22042
  4  35.2495
  5  7.40721e-06
  6  0.000233365
  7  0.000138738
  8  7.08619e-06
  9  0.000283804
  10  20.865
  11  14.9337
  12  14.5416
  13  4.30529
  14  3.67075
  15  0.000569163
  16  0.00223185
  17  16.3785
  18  0.000799778
  19  0.000545255
  20  4.98437e-05
  21  2.59593
  22  12.9634
  23  5.714e-06
  24  0.205077
  25  0.109195
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  4.804e+00  1.454e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.347e-01  1.092e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.373e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 179.811 -22.460
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217644/likelihoodResults_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.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) = 8318.59446235
delta logL = 0.423211895348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8318.58041569
delta logL = 0.437258555045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51536E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.1344       1.0000          .0000       10.000    
     3 'Normalizat'    1.3033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8318.580     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      362 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50718E-02    .68640E-01    .14400E-02    .21747E-01
   2  Index         6.1413        2.2714        .10721        .24964E-03
   3  Normalizat    1.3032        .40004E-01    .69838E-01    .23508E-04
   4  Prefactor     .96147        .21856E-01    .45782E-01    .23924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00507179
  Index      = 6.1413
  Normalizat = 1.30318
  Prefactor  = 0.961467
 **********
 **   18 **HESSE 
 **********

 FCN=   8318.580     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      397 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50718E-02    .24762        .64552E-04   -1.5694    
   2  Index         6.1413        7.6161        .59805E-02    .23029    
   3  Normalizat    1.3032        .16212        .30900E-03   -.83471    
   4  Prefactor     .96147        .86932E-01    .19213E-03   -.94025    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19562e-10
Minuit parameter uncertainties:
  1  0.0701744
  2  5.78574
  3  0.162187
  4  0.086945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217644': 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) = 8318.58041358
delta logL = 0.4372606668

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  5.072e-03  7.017e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  6.141e+00  5.786e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.615e-01  8.694e-02  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.303e+00  1.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 6.14 +/- 5.79
Photon Flux (Free Index): 6.00e-08 +/- 5.66e-08
Energy Flux (Free Index): 7.42e-06 +/- 7.75e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/217644/cmap_HighResolution_499824001_500083201_4FGL_J1159.2-2227_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', comment='SUCCESS', energy_flux2='7.42e-06', dlogl='4.37e-01', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-04 18:46:53.714749', photon_index_error2='5.79', photon_index2='6.14', ts='0.25', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='7.75e-06', EG='1.37', time_epoch_completed='1630806413.71', return_code='0', job_id='217644', GAL2='0.96', EG2='1.30', return_code2='102', photon_flux_error2='5.66e-08', ts2='1.22', photon_index='2.45' WHERE bin_id='1005' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:46:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 217644: <4FGL_J1159.2-2227_daily_bin1005> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin1005> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:31:11 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:31:13 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:31:13 2021
Terminated at Sat Sep  4 18:46:54 2021
Results reported at Sat Sep  4 18:46:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1005 179.811 -22.4605 499824001 500083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.2-2227 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   855.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

