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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin130
RA = 179.811, Dec = -22.4605
tmin = 273024001, tmax = 273283201
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='212363', job_status='RUN', time_executed='2021-09-04 18:18:00.516314', time_epoch_executed='1630804680.52' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212363

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212363/ft1_4FGL_J1159.2-2227_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212363/ft2_4FGL_J1159.2-2227_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212363/ft1_4FGL_J1159.2-2227_daily_bin130.fits outfile=/scratch/kocevski/212363/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin130.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=273024001.0 tmax=273283201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.96
user 2.68
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212363/ft2_4FGL_J1159.2-2227_daily_bin130.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/212363/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin130.fits evtable="EVENTS" outfile="/scratch/kocevski/212363/ft1_filtered_4FGL_J1159.2-2227_daily_bin130.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212363/ft1_filtered_4FGL_J1159.2-2227_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/212363/ft2_4FGL_J1159.2-2227_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/212363/ltcube_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.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/212363/ft2_4FGL_J1159.2-2227_daily_bin130.fits
.....................!
real 12.38
user 12.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212363/ft1_filtered_4FGL_J1159.2-2227_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/212363/ft2_4FGL_J1159.2-2227_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/212363/ltcube_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.fits outfile=/scratch/kocevski/212363/expmap_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.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/212363/ltcube_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.fits
.....................!
real 190.50
user 185.24
sys 4.65

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/212363/ft1_filtered_4FGL_J1159.2-2227_daily_bin130.fits scfile=/scratch/kocevski/212363/ft2_4FGL_J1159.2-2227_daily_bin130.fits outfile=/scratch/kocevski/212363/cmap_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212363/ft1_filtered_4FGL_J1159.2-2227_daily_bin130.fits scfile=/scratch/kocevski/212363/ft2_4FGL_J1159.2-2227_daily_bin130.fits outfile=/scratch/kocevski/212363/cmap_HighResolution_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212363/ft1_filtered_4FGL_J1159.2-2227_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/212363/ft2_4FGL_J1159.2-2227_daily_bin130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212363/Model_4FGL_J1159.2-2227_daily_bin130.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/212363/ft1_filtered_4FGL_J1159.2-2227_daily_bin130.fits.....................!
real 63.92
user 62.49
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/212363/ft1_filtered_4FGL_J1159.2-2227_daily_bin130.fits', '/scratch/kocevski/212363/ft2_4FGL_J1159.2-2227_daily_bin130.fits', expMap='/scratch/kocevski/212363/expmap_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.fits', expCube='/scratch/kocevski/212363/ltcube_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/212363/Model_4FGL_J1159.2-2227_daily_bin130.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/212363/ft1_filtered_4FGL_J1159.2-2227_daily_bin130.fits
Spacecraft file(s): /scratch/kocevski/212363/ft2_4FGL_J1159.2-2227_daily_bin130.fits
Exposure map: /scratch/kocevski/212363/expmap_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.fits
Exposure cube: /scratch/kocevski/212363/ltcube_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/212363/Model_4FGL_J1159.2-2227_daily_bin130.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) = 7278.03802086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.450       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6508       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3046       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.240       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.977       1.0000         .10000E-03   10000.    
    13 'norm      '    .42501E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5094       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11193E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27424E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12578E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    67.698       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8372       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1996       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3607       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .73687E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4487       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71503       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7278.012     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3482 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.415        113.71        .10197E-04    .14892E-04
   2  Prefactor     .10000E-03    12.863        .29388E-06** at limit **
   3  Prefactor     1.6463        22.654       -.19406E-05    .41895E-04
   4  Prefactor     8.3072        82.406       -.10041E-05    .17911E-05
   5  norm          1.6699        1.4934       -.19394E-06   -.50042E-04
   6  Prefactor     13.236        9.2736       -.52030E-06   -.12463E-04
   7  Prefactor     23.867        27.234        .13424E-05    .24817E-04
   8  Prefactor     .10000E-03    2.8158       -.19632E-07** at limit **
   9  Prefactor     .10000E-03    4.3807        .82210E-08** at limit **
  10  Prefactor     .10000E-03    7.7135       -.22921E-06** at limit **
  11  norm          .10000E-03    13.279       -.19258E-06** at limit **
  12  Prefactor     35.973        18.553       -.20632E-05   -.23734E-03
  13  norm          .10000E-03    5.1520       -.98856E-06** at limit **
  14  Prefactor     6.5057        6.8396       -.68891E-08    .24713E-03
  15  Prefactor     .10000E-03    103.95       -.71581E-05** at limit **
  16  Prefactor     .10000E-03    280.82       -.85900E-05** at limit **
  17  Prefactor     .10002E-03    90.897       -.14522E-04** at limit **
  18  Prefactor     67.762        46.006        .18802E-05    .70724E-05
  19  Prefactor     9.8423        21.479        .19791E-06    .38498E-04
  20  Prefactor     8.1994        5.4059       -.19637E-06   -.27105E-05
  21  Prefactor     4.3606        2.0274        .70560E-08   -.19554E-05
  22  Prefactor     .10000E-03    4.3303       -.28901E-07** at limit **
  23  norm          .73838E-01    .48413        .35262E-07    .48281E-04
  24  Normalizat    1.4487        .22933        .12325E-06    .14587E-03
  25  Prefactor     .71507        .11050        .52464E-06    .83758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4145
  Prefactor  = 0.0001
  Prefactor  = 1.64632
  Prefactor  = 8.30718
  norm       = 1.66993
  Prefactor  = 13.2365
  Prefactor  = 23.8675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.9734
  norm       = 0.000100004
  Prefactor  = 6.50567
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100021
  Prefactor  = 67.762
  Prefactor  = 9.8423
  Prefactor  = 8.1994
  Prefactor  = 4.3606
  Prefactor  = 0.0001
  norm       = 0.0738378
  Normalizat = 1.44867
  Prefactor  = 0.715068
 **********
 **   18 **HESSE 
 **********

 FCN=   7278.012     FROM HESSE     STATUS=OK           431 CALLS     3913 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.415        114.14        .73828E-04   -1.4623    
   2  Prefactor     .10000E-03    12.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6463        22.854        .32860E-03   -1.5451    
   4  Prefactor     8.3072        81.506        .13912E-03   -1.5131    
   5  norm          1.6699        1.4718        .87957E-04   -1.5450    
   6  Prefactor     13.236        9.2995        .11008E-03   -1.4980    
   7  Prefactor     23.867        27.256        .82036E-04   -1.4730    
   8  Prefactor     .10000E-03    2.8358        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3840        .17439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.973        19.218        .66814E-04   -1.4508    
  13  norm          .10000E-03    10.718        .25932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5057        6.7701        .15730E-03   -1.5198    
  15  Prefactor     .10000E-03    104.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    286.40        .36637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    112.22        .66279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     67.762        45.622        .48782E-04   -1.4060    
  19  Prefactor     9.8423        21.472        .12776E-03   -1.5080    
  20  Prefactor     8.1994        5.4126        .14001E-03   -1.5135    
  21  Prefactor     4.3606        2.0283        .79228E-04   -1.5290    
  22  Prefactor     .10000E-03    4.3692        .17337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .73838E-01    3.5339        .11276E-02   -1.5654    
  24  Normalizat    1.4487        .27648        .29392E-03   -.79231    
  25  Prefactor     .71507        .13134        .20335E-03   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82625e-10
Minuit parameter uncertainties:
  1  115.001
  2  8.59224e-06
  3  12.2733
  4  52.1343
  5  1.47182
  6  9.30048
  7  27.2704
  8  9.61708e-07
  9  2.72613e-06
  10  2.29017e-06
  11  1.35759e-05
  12  19.2212
  13  0.00041122
  14  6.77091
  15  0.000217505
  16  0.00216665
  17  0.00310768
  18  45.6459
  19  21.4888
  20  5.41295
  21  2.02834
  22  5.62031e-06
  23  1.02101
  24  0.276771
  25  0.131398
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  3.597e+01  1.922e+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:  7.151e-01  1.314e-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.449e+00  2.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.28
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 6.69e-08
Energy Flux (Fixed Index): 3.86e-05 +/- 2.06e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7276.04378161
delta logL = 1.968678599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7276.0061042
delta logL = 2.00635601073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8880       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5519       1.0000          .0000       10.000    
     3 'Normalizat'    1.3213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76126       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=   7276.006     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      265 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8738        36.948        .38217E-02   -.15933E-03
   2  Index         3.5528        1.9773        .69469E-01    .11198E-03
   3  Normalizat    1.3213        .96889E-01    .68872E-01    .80007E-05
   4  Prefactor     .76125        .47501E-01    .43211E-01    .23082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.87376
  Index      = 3.55277
  Normalizat = 1.32126
  Prefactor  = 0.761245
 **********
 **   18 **HESSE 
 **********

 FCN=   7276.006     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8738        52.464        .82335E-04   -1.5184    
   2  Index         3.5528        2.4856        .28747E-02   -.29365    
   3  Normalizat    1.3213        .27916        .30471E-03   -.82934    
   4  Prefactor     .76125        .14301        .19759E-03   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90139e-10
Minuit parameter uncertainties:
  1  38.0264
  2  2.61358
  3  0.279481
  4  0.143075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212363': 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) = 7276.00610287
delta logL = 2.00635733264

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  6.874e+00  3.803e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.553e+00  2.614e+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:  7.612e-01  1.431e-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.321e+00  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.80
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 3.55 +/- 2.61
Photon Flux (Free Index): 2.26e-07 +/- 9.35e-08
Energy Flux (Free Index): 3.70e-05 +/- 2.54e-05

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/212363/cmap_HighResolution_273024001_273283201_4FGL_J1159.2-2227_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='3.70e-05', photon_flux_error='6.69e-08', dlogl='2.01e+00', energy_flux='3.86e-05', photon_flux2='2.26e-07', job_status='DONE', time_completed='2021-09-04 18:30:36.604537', photon_index_error2='2.61', photon_index2='3.55', ts='5.28', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.54e-05', EG='1.45', time_epoch_completed='1630805436.6', return_code='0', job_id='212363', GAL2='0.76', EG2='1.32', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='9.35e-08', ts2='9.80', photon_index='2.45' WHERE bin_id='130' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:30:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 212363: <4FGL_J1159.2-2227_daily_bin130> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin130> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 18:16:00 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:16:03 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:16:03 2021
Terminated at Sat Sep  4 18:30:37 2021
Results reported at Sat Sep  4 18:30:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin130 179.811 -22.4605 273024001 273283201 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 :                                   754.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            877 sec.

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

