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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin410
RA = 179.811, Dec = -22.4605
tmin = 345600001, tmax = 345859201
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='214494', job_status='RUN', time_executed='2021-09-04 18:21:10.735370', time_epoch_executed='1630804870.74' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214494/ft1_4FGL_J1159.2-2227_daily_bin410.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214494/ft2_4FGL_J1159.2-2227_daily_bin410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214494/ft1_4FGL_J1159.2-2227_daily_bin410.fits outfile=/scratch/kocevski/214494/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin410.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=345600001.0 tmax=345859201.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 3.29
user 3.07
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214494/ft1_filtered_4FGL_J1159.2-2227_daily_bin410.fits" evtable="EVENTS" scfile=/scratch/kocevski/214494/ft2_4FGL_J1159.2-2227_daily_bin410.fits sctable="SC_DATA" outfile=/scratch/kocevski/214494/ltcube_345600001_345859201_4FGL_J1159.2-2227_daily_bin410.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/214494/ft2_4FGL_J1159.2-2227_daily_bin410.fits
.....................!
real 11.67
user 11.35
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214494/ft1_filtered_4FGL_J1159.2-2227_daily_bin410.fits evtable="EVENTS" scfile=/scratch/kocevski/214494/ft2_4FGL_J1159.2-2227_daily_bin410.fits sctable="SC_DATA" expcube=/scratch/kocevski/214494/ltcube_345600001_345859201_4FGL_J1159.2-2227_daily_bin410.fits outfile=/scratch/kocevski/214494/expmap_345600001_345859201_4FGL_J1159.2-2227_daily_bin410.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/214494/ltcube_345600001_345859201_4FGL_J1159.2-2227_daily_bin410.fits
.....................!
real 189.79
user 185.63
sys 3.75

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/214494/ft1_filtered_4FGL_J1159.2-2227_daily_bin410.fits scfile=/scratch/kocevski/214494/ft2_4FGL_J1159.2-2227_daily_bin410.fits outfile=/scratch/kocevski/214494/cmap_345600001_345859201_4FGL_J1159.2-2227_daily_bin410.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214494/ft1_filtered_4FGL_J1159.2-2227_daily_bin410.fits scfile=/scratch/kocevski/214494/ft2_4FGL_J1159.2-2227_daily_bin410.fits outfile=/scratch/kocevski/214494/cmap_HighResolution_345600001_345859201_4FGL_J1159.2-2227_daily_bin410.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214494/ft1_filtered_4FGL_J1159.2-2227_daily_bin410.fits evtable="EVENTS" scfile=/scratch/kocevski/214494/ft2_4FGL_J1159.2-2227_daily_bin410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214494/Model_4FGL_J1159.2-2227_daily_bin410.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/214494/ft1_filtered_4FGL_J1159.2-2227_daily_bin410.fits.....................!
real 64.91
user 63.38
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    107.08       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.075       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7078       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20469E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35208E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.342       1.0000         .10000E-03   10000.    
    11 'norm      '    15.865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13706E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18455       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1587       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.216       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.955       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7678       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4380       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.0403       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5618       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83431       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=   7207.614     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2935 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     107.06        96.142        .22247E-05    .80229E-04
   2  Prefactor     35.071        39.433        .67076E-06    .54828E-04
   3  Prefactor     .10000E-03    11.007        .24976E-06** at limit **
   4  Prefactor     .10000E-03    58.834       -.58145E-05** at limit **
   5  norm          4.7075        1.7103       -.42523E-06    .15042E-02
   6  Prefactor     .10002E-03    66.803       -.23081E-04** at limit **
   7  Prefactor     .10000E-03    10.816       -.68295E-06** at limit **
   8  Prefactor     .10000E-03    6.0837       -.16084E-05** at limit **
   9  Prefactor     .10000E-03    5.5746       -.78306E-07** at limit **
  10  Prefactor     17.341        20.664        .37071E-06    .94777E-04
  11  norm          15.867        24.263       -.34465E-06    .50021E-05
  12  Prefactor     .10000E-03    30.687       -.22155E-05** at limit **
  13  norm          .19866        2.7434        .22655E-05    .84407E-03
  14  Prefactor     8.1588        4.9760       -.82097E-07    .79586E-04
  15  Prefactor     .10000E-03    14.945       -.96677E-06** at limit **
  16  Prefactor     .10000E-03    12.399        .10172E-05** at limit **
  17  Prefactor     10.217        13.063       -.30640E-08    .49367E-04
  18  Prefactor     .10000E-03    15.842       -.75318E-06** at limit **
  19  Prefactor     31.950        29.588        .52388E-06    .86466E-04
  20  Prefactor     1.7683        3.6975       -.85232E-06    .66226E-04
  21  Prefactor     4.4381        2.0930        .42428E-07   -.47881E-04
  22  Prefactor     .10000E-03    25.083        .33425E-05** at limit **
  23  norm          8.0404        1.9281       -.96836E-08   -.40627E-04
  24  Normalizat    1.5624        .24749        .38892E-06    .38387E-03
  25  Prefactor     .83403        .12484        .53191E-06    .36202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 107.063
  Prefactor  = 35.0708
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 4.70748
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 17.3409
  norm       = 15.8674
  Prefactor  = 0.000100001
  norm       = 0.198658
  Prefactor  = 8.15885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2173
  Prefactor  = 0.0001
  Prefactor  = 31.9501
  Prefactor  = 1.76827
  Prefactor  = 4.43809
  Prefactor  = 0.0001
  norm       = 8.04045
  Normalizat = 1.56239
  Prefactor  = 0.834026
 **********
 **   18 **HESSE 
 **********

 FCN=   7207.614     FROM HESSE     STATUS=OK           433 CALLS     3368 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     107.06        96.455        .19432E-03   -1.3635    
   2  Prefactor     35.071        39.425        .67666E-04   -1.4523    
   3  Prefactor     .10000E-03    11.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7075        1.7139        .31806E-03   -1.5274    
   6  Prefactor     .10002E-03    70.903        .44970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9153        .55320E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.341        20.681        .96175E-04   -1.4875    
  11  norm          15.867        24.306        .10056E-03   -1.4911    
  12  Prefactor     .10000E-03    31.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .19866        6.6850        .25028E-02   -1.5619    
  14  Prefactor     8.1588        4.9746        .14036E-03   -1.5137    
  15  Prefactor     .10000E-03    14.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.217        13.058        .12536E-03   -1.5069    
  18  Prefactor     .10000E-03    15.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.950        29.617        .70883E-04   -1.4577    
  20  Prefactor     1.7683        3.6844        .22964E-03   -1.5442    
  21  Prefactor     4.4381        2.0941        .81718E-04   -1.5287    
  22  Prefactor     .10000E-03    25.773        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.0404        1.9282        .55739E-04   -1.5141    
  24  Normalizat    1.5624        .29021        .31945E-03   -.76040    
  25  Prefactor     .83403        .14779        .21615E-03   -.98486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5242e-09
Minuit parameter uncertainties:
  1  96.597
  2  39.4544
  3  4.58676e-05
  4  0.00103342
  5  1.71387
  6  0.00251859
  7  6.09963e-05
  8  0.000297813
  9  6.06704e-06
  10  20.6897
  11  24.3216
  12  0.000329915
  13  2.3045
  14  4.97481
  15  0.000107402
  16  9.14851e-05
  17  13.0617
  18  9.01783e-05
  19  29.6302
  20  3.68485
  21  2.09412
  22  6.39438e-06
  23  1.92818
  24  0.29052
  25  0.147864
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.299e-04  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:  8.340e-01  1.479e-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.562e+00  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/214494/likelihoodResults_345600001_345859201_4FGL_J1159.2-2227_daily_bin410.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7207.61398323
delta logL = -0.000149895427057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7207.6135544
delta logL = 0.000278929592241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22436E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6653       1.0000          .0000       10.000    
     3 'Normalizat'    1.5624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83403       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=   7207.613     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      299 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11343        1.5575        .64753E-01    .29372E-03
   2  Index         3.3355        .63107        .50000       -.73626E-07
   3  Normalizat    1.5599        .68560E-02    .72252E-01   -.14115E-03
   4  Prefactor     .83461        .35440E-02    .44158E-01   -.12648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.113434
  Index      = 3.3355
  Normalizat = 1.55988
  Prefactor  = 0.834614
 **********
 **   18 **HESSE 
 **********

 FCN=   7207.613     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      332 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11343        6587.0        .18833E-02   -1.5641    
   2  Index         3.3355        8.3266        .10129E-01   -.33938    
   3  Normalizat    1.5599        .23826        .31967E-03   -.76109    
   4  Prefactor     .83461        .86685E-01    .21609E-03   -.98465    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.72978e-06
Minuit parameter uncertainties:
  1  40.5232
  2  109.172
  3  0.238428
  4  0.086699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214494': 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) = 7207.61312533
delta logL = 0.000708006948116

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.134e-01  4.052e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.336e+00  1.092e+02  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:  8.346e-01  8.670e-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.560e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.811 -22.460

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/214494/cmap_HighResolution_345600001_345859201_4FGL_J1159.2-2227_daily_bin410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-04 18:34:16.823635', job_id='214494', GAL2='0.83', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1630805656.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.08e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='410' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:34:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 214494: <4FGL_J1159.2-2227_daily_bin410> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin410> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:20:51 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:20:52 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:20:52 2021
Terminated at Sat Sep  4 18:34:17 2021
Results reported at Sat Sep  4 18:34:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin410 179.811 -22.4605 345600001 345859201 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 :                                   784.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

