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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin572
RA = 179.811, Dec = -22.4605
tmin = 387590401, tmax = 387849601
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='215973', job_status='RUN', time_executed='2021-09-04 18:29:23.864347', time_epoch_executed='1630805363.86' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215973/ft1_4FGL_J1159.2-2227_daily_bin572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215973/ft2_4FGL_J1159.2-2227_daily_bin572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215973/ft1_4FGL_J1159.2-2227_daily_bin572.fits outfile=/scratch/kocevski/215973/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin572.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=387590401.0 tmax=387849601.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.05
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215973/ft1_filtered_4FGL_J1159.2-2227_daily_bin572.fits" evtable="EVENTS" scfile=/scratch/kocevski/215973/ft2_4FGL_J1159.2-2227_daily_bin572.fits sctable="SC_DATA" outfile=/scratch/kocevski/215973/ltcube_387590401_387849601_4FGL_J1159.2-2227_daily_bin572.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/215973/ft2_4FGL_J1159.2-2227_daily_bin572.fits
.....................!
real 12.39
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215973/ft1_filtered_4FGL_J1159.2-2227_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/215973/ft2_4FGL_J1159.2-2227_daily_bin572.fits sctable="SC_DATA" expcube=/scratch/kocevski/215973/ltcube_387590401_387849601_4FGL_J1159.2-2227_daily_bin572.fits outfile=/scratch/kocevski/215973/expmap_387590401_387849601_4FGL_J1159.2-2227_daily_bin572.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/215973/ltcube_387590401_387849601_4FGL_J1159.2-2227_daily_bin572.fits
.....................!
real 191.34
user 185.34
sys 5.58

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/215973/ft1_filtered_4FGL_J1159.2-2227_daily_bin572.fits scfile=/scratch/kocevski/215973/ft2_4FGL_J1159.2-2227_daily_bin572.fits outfile=/scratch/kocevski/215973/cmap_387590401_387849601_4FGL_J1159.2-2227_daily_bin572.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215973/ft1_filtered_4FGL_J1159.2-2227_daily_bin572.fits scfile=/scratch/kocevski/215973/ft2_4FGL_J1159.2-2227_daily_bin572.fits outfile=/scratch/kocevski/215973/cmap_HighResolution_387590401_387849601_4FGL_J1159.2-2227_daily_bin572.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215973/ft1_filtered_4FGL_J1159.2-2227_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/215973/ft2_4FGL_J1159.2-2227_daily_bin572.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215973/Model_4FGL_J1159.2-2227_daily_bin572.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/215973/ft1_filtered_4FGL_J1159.2-2227_daily_bin572.fits.....................!
real 53.08
user 51.65
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.491       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.946       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.0615       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15378E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .55869       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5536       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.687       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.920       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6029       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.808       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3608       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5644       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67739       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=   5831.658     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3349 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.460        118.25       -.75037E-05   -.46268E-04
   2  Prefactor     .10000E-03    19.828        .11217E-05** at limit **
   3  Prefactor     21.946        17.435       -.54520E-07   -.16987E-04
   4  Prefactor     .10000E-03    47.758        .33687E-05** at limit **
   5  norm          7.0615        1.9570        .45811E-07    .54858E-03
   6  Prefactor     .10039E-03    6.5082       -.16807E-05** at limit **
   7  Prefactor     .10000E-03    10.929        .10762E-06** at limit **
   8  Prefactor     5.0366        6.9224        .42923E-05   -.20463E-03
   9  Prefactor     .10000E-03    5.8517        .32939E-07** at limit **
  10  Prefactor     .10000E-03    21.508       -.58171E-06** at limit **
  11  norm          .10000E-03    9.2487        .93507E-07** at limit **
  12  Prefactor     .10000E-03    16.600       -.12290E-05** at limit **
  13  norm          .56061        3.6130        .10743E-05    .10705E-03
  14  Prefactor     .10000E-03    3.8410       -.19437E-06** at limit **
  15  Prefactor     1.4947        281.46       -.30509E-04   -.67902E-04
  16  Prefactor     33.683        38.415       -.65052E-06   -.22783E-04
  17  Prefactor     36.934        27.040        .51956E-06    .20668E-03
  18  Prefactor     .10000E-03    42.973       -.66336E-06** at limit **
  19  Prefactor     .10000E-03    98.809        .13553E-05** at limit **
  20  Prefactor     .10000E-03    4.6584        .22448E-06** at limit **
  21  Prefactor     7.6030        2.5223       -.18219E-09   -.37512E-04
  22  Prefactor     33.807        19.523        .16994E-06   -.82707E-05
  23  norm          1.3608        1.6723        .18337E-06   -.94232E-04
  24  Normalizat    1.5645        .26151       -.18352E-05    .20665E-03
  25  Prefactor     .67740        .12703        .16109E-06    .10130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4599
  Prefactor  = 0.0001
  Prefactor  = 21.9465
  Prefactor  = 0.000100003
  norm       = 7.06152
  Prefactor  = 0.000100389
  Prefactor  = 0.0001
  Prefactor  = 5.03659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.560611
  Prefactor  = 0.0001
  Prefactor  = 1.49466
  Prefactor  = 33.6828
  Prefactor  = 36.9343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.60299
  Prefactor  = 33.8067
  norm       = 1.36081
  Normalizat = 1.56448
  Prefactor  = 0.677398
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.658     FROM HESSE     STATUS=OK           423 CALLS     3772 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.460        120.64        .90721E-04   -1.4825    
   2  Prefactor     .10000E-03    19.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.946        17.440        .85501E-04   -1.4771    
   4  Prefactor     .10000E-03    48.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0615        1.9560        .53147E-04   -1.5176    
   6  Prefactor     .10039E-03    41.360        .36120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0366        7.1223        .89583E-03   -1.5259    
   9  Prefactor     .10000E-03    5.8600        .18042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.2510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .56061        3.5471        .27648E-03   -1.5558    
  14  Prefactor     .10000E-03    3.8801        .14592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4947        315.94        .34161E-02   -1.5463    
  16  Prefactor     33.683        38.375        .69041E-04   -1.4547    
  17  Prefactor     36.934        27.310        .65959E-04   -1.4492    
  18  Prefactor     .10000E-03    43.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    100.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7622        .16089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.6030        2.5226        .68072E-04   -1.5156    
  22  Prefactor     33.807        19.557        .68918E-04   -1.4544    
  23  norm          1.3608        1.6524        .10409E-03   -1.5475    
  24  Normalizat    1.5645        .30167        .30151E-03   -.75982    
  25  Prefactor     .67740        .14800        .21864E-03   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03124e-08
Minuit parameter uncertainties:
  1  97.1952
  2  0.000145664
  3  17.444
  4  0.000718724
  5  1.95599
  6  0.0080319
  7  1.36309e-05
  8  7.12348
  9  2.08229e-06
  10  0.000115416
  11  6.56232e-06
  12  8.6164e-05
  13  2.8203
  14  6.79097e-06
  15  43.6954
  16  38.403
  17  27.3188
  18  0.00018615
  19  0.000364092
  20  1.10101e-05
  21  2.52266
  22  19.5602
  23  1.65242
  24  0.302025
  25  0.148085
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  8.616e-05  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:  6.774e-01  1.481e-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.564e+00  3.020e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215973/likelihoodResults_387590401_387849601_4FGL_J1159.2-2227_daily_bin572.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) = 5831.65804592
delta logL = -0.000284652749542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5831.65776125
delta logL = 2.15386535274e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4242       1.0000          .0000       10.000    
     3 'Normalizat'    1.5644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67744       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5831.658     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      246 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10113E-03    148.02        .18142E-02** at limit **
   2  Index         2.3705        6.0247        .50000        .84400E-05
   3  Normalizat    1.5645        .19017E-01    .30151E-03    .48753E-04
   4  Prefactor     .67740        .95731E-02    .21864E-03    .62034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101134
  Index      = 2.37048
  Normalizat = 1.56447
  Prefactor  = 0.677399
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.658     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10113E-03    659.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3705        5.6321        .50000       -.55378    
   3  Normalizat    1.5645        .41851E-01    .12061E-04   -.75982    
   4  Prefactor     .67740        .21066E-01    .87455E-05   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.71857e-09
Minuit parameter uncertainties:
  1  0.0553209
  2  808.828
  3  0.0418523
  4  0.0210665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215973': 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) = 5831.65776112
delta logL = 1.54139343067e-07

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.011e-04  5.532e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.370e+00  8.088e+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:  6.774e-01  2.107e-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.564e+00  4.185e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/215973/cmap_HighResolution_387590401_387849601_4FGL_J1159.2-2227_daily_bin572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 18:41:34.873677', job_id='215973', GAL2='0.68', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1630806094.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='572' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:41:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 215973: <4FGL_J1159.2-2227_daily_bin572> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin572> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 18:25:40 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:25:41 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:25:41 2021
Terminated at Sat Sep  4 18:41:35 2021
Results reported at Sat Sep  4 18:41:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin572 179.811 -22.4605 387590401 387849601 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 :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            955 sec.

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

