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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin960
RA = 179.811, Dec = -22.4605
tmin = 488160001, tmax = 488419201
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='217552', job_status='RUN', time_executed='2021-09-04 18:34:40.672830', time_epoch_executed='1630805680.67' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217552

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217552/ft1_4FGL_J1159.2-2227_daily_bin960.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217552/ft2_4FGL_J1159.2-2227_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217552/ft1_4FGL_J1159.2-2227_daily_bin960.fits outfile=/scratch/kocevski/217552/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin960.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=488160001.0 tmax=488419201.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.37
user 5.09
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217552/ft1_filtered_4FGL_J1159.2-2227_daily_bin960.fits" evtable="EVENTS" scfile=/scratch/kocevski/217552/ft2_4FGL_J1159.2-2227_daily_bin960.fits sctable="SC_DATA" outfile=/scratch/kocevski/217552/ltcube_488160001_488419201_4FGL_J1159.2-2227_daily_bin960.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/217552/ft2_4FGL_J1159.2-2227_daily_bin960.fits
.....................!
real 12.88
user 12.36
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217552/ft1_filtered_4FGL_J1159.2-2227_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/217552/ft2_4FGL_J1159.2-2227_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/217552/ltcube_488160001_488419201_4FGL_J1159.2-2227_daily_bin960.fits outfile=/scratch/kocevski/217552/expmap_488160001_488419201_4FGL_J1159.2-2227_daily_bin960.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/217552/ltcube_488160001_488419201_4FGL_J1159.2-2227_daily_bin960.fits
.....................!
real 191.98
user 185.82
sys 5.51

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/217552/ft1_filtered_4FGL_J1159.2-2227_daily_bin960.fits scfile=/scratch/kocevski/217552/ft2_4FGL_J1159.2-2227_daily_bin960.fits outfile=/scratch/kocevski/217552/cmap_488160001_488419201_4FGL_J1159.2-2227_daily_bin960.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217552/ft1_filtered_4FGL_J1159.2-2227_daily_bin960.fits scfile=/scratch/kocevski/217552/ft2_4FGL_J1159.2-2227_daily_bin960.fits outfile=/scratch/kocevski/217552/cmap_HighResolution_488160001_488419201_4FGL_J1159.2-2227_daily_bin960.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/217552/ft1_filtered_4FGL_J1159.2-2227_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/217552/ft2_4FGL_J1159.2-2227_daily_bin960.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217552/Model_4FGL_J1159.2-2227_daily_bin960.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/217552/ft1_filtered_4FGL_J1159.2-2227_daily_bin960.fits.....................!
real 52.71
user 51.02
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1697       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.804       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8841       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.891       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.876       1.0000         .10000E-03   10000.    
    11 'norm      '    9.8107       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10971E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.663       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9805       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.790       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7094       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.136       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5554       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4874       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86987       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=   5290.758     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2860 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.233        .51283E-05** at limit **
   2  Prefactor     6.1850        140.74        .45757E-04    .70753E-06
   3  Prefactor     35.802        24.480       -.30430E-05   -.52527E-04
   4  Prefactor     .10000E-03    86.714       -.30104E-04** at limit **
   5  norm          2.8840        1.6759        .53003E-07    .98606E-04
   6  Prefactor     14.891        14.464       -.77232E-06   -.60916E-03
   7  Prefactor     .10000E-03    29.739        .89009E-06** at limit **
   8  Prefactor     .10000E-03    3.0618       -.10538E-07** at limit **
   9  Prefactor     .10000E-03    49.091        .21764E-04** at limit **
  10  Prefactor     19.875        26.998       -.32665E-06    .55176E-05
  11  norm          9.8089        27.294       -.11481E-05   -.12502E-04
  12  Prefactor     .10000E-03    38.587       -.11036E-04** at limit **
  13  norm          13.667        7.4231       -.21855E-06   -.73219E-03
  14  Prefactor     5.9808        5.7849       -.46479E-06   -.84981E-04
  15  Prefactor     .10000E-03    73.163        .21280E-04** at limit **
  16  Prefactor     58.793        41.960        .21836E-05    .13303E-04
  17  Prefactor     .10000E-03    10.270       -.99547E-06** at limit **
  18  Prefactor     .10000E-03    38.947       -.12011E-04** at limit **
  19  Prefactor     .10000E-03    11.617       -.11188E-05** at limit **
  20  Prefactor     .10000E-03    10.485        .19984E-05** at limit **
  21  Prefactor     3.7094        2.4066       -.56714E-07   -.13826E-03
  22  Prefactor     31.136        21.859       -.58577E-07   -.12522E-03
  23  norm          2.5554        1.2366        .14706E-07    .10417E-03
  24  Normalizat    1.4874        .30698        .15535E-06   -.48993E-04
  25  Prefactor     .86989        .14859       -.54795E-06   -.35906E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.18502
  Prefactor  = 35.8024
  Prefactor  = 0.0001
  norm       = 2.88396
  Prefactor  = 14.8914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8754
  norm       = 9.8089
  Prefactor  = 0.000100001
  norm       = 13.6669
  Prefactor  = 5.98075
  Prefactor  = 0.0001
  Prefactor  = 58.7928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70936
  Prefactor  = 31.1363
  norm       = 2.55541
  Normalizat = 1.48738
  Prefactor  = 0.869892
 **********
 **   18 **HESSE 
 **********

 FCN=   5290.758     FROM HESSE     STATUS=OK           425 CALLS     3285 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1850        139.10        .16162E-03   -1.5211    
   3  Prefactor     35.802        24.459        .66976E-04   -1.4511    
   4  Prefactor     .10000E-03    86.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8840        1.6749        .69223E-04   -1.5368    
   6  Prefactor     14.891        14.632        .51896E-03   -1.4936    
   7  Prefactor     .10000E-03    29.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0838        .12428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.875        27.001        .89838E-04   -1.4816    
  11  norm          9.8089        27.372        .12794E-03   -1.5081    
  12  Prefactor     .10000E-03    39.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.667        7.4195        .54180E-03   -1.4968    
  14  Prefactor     5.9808        5.7780        .16261E-03   -1.5219    
  15  Prefactor     .10000E-03    73.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     58.793        41.972        .52325E-04   -1.4173    
  17  Prefactor     .10000E-03    10.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.739        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7094        2.4035        .88308E-04   -1.5323    
  22  Prefactor     31.136        21.897        .35903E-03   -1.4591    
  23  norm          2.5554        1.2393        .54538E-04   -1.5388    
  24  Normalizat    1.4874        .36629        .34432E-03   -.78134    
  25  Prefactor     .86989        .17689        .21450E-03   -.97201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05046e-10
Minuit parameter uncertainties:
  1  1.41708e-06
  2  58.8181
  3  24.4658
  4  0.00011713
  5  1.67491
  6  14.6357
  7  9.60734e-06
  8  1.88986e-06
  9  6.41386e-05
  10  27.0178
  11  27.4075
  12  0.00030351
  13  7.42005
  14  5.7785
  15  4.55833e-05
  16  41.9935
  17  4.14755e-06
  18  2.10867e-05
  19  1.1898e-06
  20  4.32983e-06
  21  2.40358
  22  21.9023
  23  1.23933
  24  0.366945
  25  0.177007
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.035e-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.699e-01  1.770e-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.487e+00  3.669e-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.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217552/likelihoodResults_488160001_488419201_4FGL_J1159.2-2227_daily_bin960.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) = 5290.757898
delta logL = -0.000121740022223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5290.75777673
delta logL = -4.76584318676e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6144       1.0000          .0000       10.000    
     3 'Normalizat'    1.4874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86989       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=   5290.758     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      286 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10187E-03    64.436        .36285E-02** at limit **
   2  Index         2.5416        7.6002        .50000        .11399E-04
   3  Normalizat    1.4874        .10567E-01    .34432E-03   -.13144E-03
   4  Prefactor     .86989        .52362E-02    .21450E-03   -.51421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101871
  Index      = 2.54162
  Normalizat = 1.48739
  Prefactor  = 0.869888
 **********
 **   18 **HESSE 
 **********

 FCN=   5290.758     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10187E-03    315.01        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5416        5.1363        .50000       -.51401    
   3  Normalizat    1.4874        .23582E-01    .13773E-04   -.78133    
   4  Prefactor     .86989        .11686E-01    .42900E-04   -.97201    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05993e-09
Minuit parameter uncertainties:
  1  0.0488172
  2  273.295
  3  0.023582
  4  0.0116857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217552': 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) = 5290.75777647
delta logL = -2.0949573809e-07

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.019e-04  4.882e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.542e+00  2.733e+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.699e-01  1.169e-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.487e+00  2.358e-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/217552/cmap_HighResolution_488160001_488419201_4FGL_J1159.2-2227_daily_bin960.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-04 18:45:52.068695', job_id='217552', GAL2='0.87', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630806352.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-2.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='960' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:45:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 217552: <4FGL_J1159.2-2227_daily_bin960> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin960> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:31:00 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:31:01 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:01 2021
Terminated at Sat Sep  4 18:45:52 2021
Results reported at Sat Sep  4 18:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin960 179.811 -22.4605 488160001 488419201 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 :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

