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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin344
RA = 179.811, Dec = -22.4605
tmin = 328492801, tmax = 328752001
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='214385', job_status='RUN', time_executed='2021-09-04 18:23:26.887150', time_epoch_executed='1630805006.89' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214385/ft1_4FGL_J1159.2-2227_daily_bin344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214385/ft2_4FGL_J1159.2-2227_daily_bin344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214385/ft1_4FGL_J1159.2-2227_daily_bin344.fits outfile=/scratch/kocevski/214385/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin344.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=328492801.0 tmax=328752001.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.41
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214385/ft1_filtered_4FGL_J1159.2-2227_daily_bin344.fits" evtable="EVENTS" scfile=/scratch/kocevski/214385/ft2_4FGL_J1159.2-2227_daily_bin344.fits sctable="SC_DATA" outfile=/scratch/kocevski/214385/ltcube_328492801_328752001_4FGL_J1159.2-2227_daily_bin344.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/214385/ft2_4FGL_J1159.2-2227_daily_bin344.fits
.....................!
real 12.83
user 12.30
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214385/ft1_filtered_4FGL_J1159.2-2227_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/214385/ft2_4FGL_J1159.2-2227_daily_bin344.fits sctable="SC_DATA" expcube=/scratch/kocevski/214385/ltcube_328492801_328752001_4FGL_J1159.2-2227_daily_bin344.fits outfile=/scratch/kocevski/214385/expmap_328492801_328752001_4FGL_J1159.2-2227_daily_bin344.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/214385/ltcube_328492801_328752001_4FGL_J1159.2-2227_daily_bin344.fits
.....................!
real 192.29
user 186.76
sys 5.08

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/214385/ft1_filtered_4FGL_J1159.2-2227_daily_bin344.fits scfile=/scratch/kocevski/214385/ft2_4FGL_J1159.2-2227_daily_bin344.fits outfile=/scratch/kocevski/214385/cmap_328492801_328752001_4FGL_J1159.2-2227_daily_bin344.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214385/ft1_filtered_4FGL_J1159.2-2227_daily_bin344.fits scfile=/scratch/kocevski/214385/ft2_4FGL_J1159.2-2227_daily_bin344.fits outfile=/scratch/kocevski/214385/cmap_HighResolution_328492801_328752001_4FGL_J1159.2-2227_daily_bin344.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/214385/ft1_filtered_4FGL_J1159.2-2227_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/214385/ft2_4FGL_J1159.2-2227_daily_bin344.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214385/Model_4FGL_J1159.2-2227_daily_bin344.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/214385/ft1_filtered_4FGL_J1159.2-2227_daily_bin344.fits.....................!
real 56.62
user 55.08
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    169.26       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9162       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.301       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.907       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10522E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15336E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.564       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.472       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3406       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.720       1.0000         .10000E-03   10000.    
    23 'norm      '    2.7423       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3316       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89280       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=   6456.356     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2876 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     169.13        138.61       -.95149E-04    .12603E-05
   2  Prefactor     .10000E-03    10.334        .30569E-05** at limit **
   3  Prefactor     8.9174        9.1254       -.82619E-07   -.32256E-05
   4  Prefactor     .10000E-03    17.311       -.31807E-05** at limit **
   5  norm          4.3154        1.7983        .10873E-05    .20105E-04
   6  Prefactor     11.303        11.783        .92875E-06   -.23808E-04
   7  Prefactor     11.517        32.765       -.14724E-04   -.80863E-05
   8  Prefactor     .10000E-03    2.4280       -.69209E-07** at limit **
   9  Prefactor     30.911        22.232       -.35763E-06    .72177E-05
  10  Prefactor     .10000E-03    13.651       -.67985E-05** at limit **
  11  norm          .10000E-03    71.027        .35643E-05** at limit **
  12  Prefactor     .10000E-03    14.798        .85779E-05** at limit **
  13  norm          .10007E-03    2.4970        .47687E-06** at limit **
  14  Prefactor     .10000E-03    2.1081       -.83165E-07** at limit **
  15  Prefactor     26.549        27.488       -.33226E-05   -.43120E-04
  16  Prefactor     .10000E-03    107.14       -.35400E-05** at limit **
  17  Prefactor     .10000E-03    4.8936        .20049E-06** at limit **
  18  Prefactor     .10000E-03    10.246       -.36640E-05** at limit **
  19  Prefactor     28.466        26.325       -.18803E-05    .16571E-04
  20  Prefactor     .10000E-03    13.706       -.77533E-06** at limit **
  21  Prefactor     4.3406        2.5792       -.13260E-06   -.43551E-04
  22  Prefactor     25.723        16.196        .19028E-07    .74782E-05
  23  norm          2.7426        1.3250       -.13762E-06   -.94383E-04
  24  Normalizat    1.3313        .25732        .34614E-05   -.12317E-03
  25  Prefactor     .89274        .12759        .10431E-05   -.43913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 169.131
  Prefactor  = 0.0001
  Prefactor  = 8.91738
  Prefactor  = 0.0001
  norm       = 4.31542
  Prefactor  = 11.3029
  Prefactor  = 11.5172
  Prefactor  = 0.0001
  Prefactor  = 30.9113
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100073
  Prefactor  = 0.0001
  Prefactor  = 26.5494
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4657
  Prefactor  = 0.0001
  Prefactor  = 4.34064
  Prefactor  = 25.723
  norm       = 2.74264
  Normalizat = 1.33132
  Prefactor  = 0.892742
 **********
 **   18 **HESSE 
 **********

 FCN=   6456.356     FROM HESSE     STATUS=OK           429 CALLS     3305 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     169.13        138.62        .15505E-03   -1.3100    
   2  Prefactor     .10000E-03    10.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9174        9.1252        .13423E-03   -1.5111    
   4  Prefactor     .10000E-03    17.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3154        1.7981        .65863E-04   -1.5292    
   6  Prefactor     11.303        11.799        .11917E-03   -1.5035    
   7  Prefactor     11.517        32.770        .11795E-03   -1.5029    
   8  Prefactor     .10000E-03    2.4399        .12225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.911        22.244        .72071E-04   -1.4595    
  10  Prefactor     .10000E-03    13.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    73.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10007E-03    13.504        .24169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1218        .11390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.549        27.417        .77727E-04   -1.4677    
  16  Prefactor     .10000E-03    109.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8941        .17360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.466        26.331        .75083E-04   -1.4640    
  20  Prefactor     .10000E-03    14.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3406        2.5726        .96131E-04   -1.5291    
  22  Prefactor     25.723        16.203        .78989E-04   -1.4693    
  23  norm          2.7426        1.3230        .61991E-04   -1.5377    
  24  Normalizat    1.3313        .30639        .33289E-03   -.82636    
  25  Prefactor     .89274        .15310        .20170E-03   -.96395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45818e-09
Minuit parameter uncertainties:
  1  138.884
  2  1.41904e-06
  3  9.12661
  4  4.52282e-05
  5  1.79808
  6  11.8013
  7  32.8213
  8  8.99897e-06
  9  22.2495
  10  1.4511e-05
  11  0.000444993
  12  0.000105391
  13  0.00199039
  14  7.74506e-06
  15  27.4296
  16  0.000544794
  17  3.17219e-06
  18  6.53664e-06
  19  26.3417
  20  8.15598e-05
  21  2.57266
  22  16.2059
  23  1.32301
  24  0.30681
  25  0.153175
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.054e-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.927e-01  1.532e-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.331e+00  3.068e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214385/likelihoodResults_328492801_328752001_4FGL_J1159.2-2227_daily_bin344.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) = 6456.35666632
delta logL = -0.000320096648466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6456.35634623
delta logL = -6.52107701171e-10

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 'Index     '    2.4625       1.0000          .0000       10.000    
     3 'Normalizat'    1.3313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89278       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=   6456.356     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    486.78        .90712E-02** at limit **
   2  Index         2.4779        6.2480        .50000       -.94280E-05
   3  Normalizat    1.3313        .38307E-01    .75221E-01    .51410E-04
   4  Prefactor     .89274        .19559E-01    .44913E-01    .60230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47792
  Normalizat = 1.33133
  Prefactor  = 0.892741
 **********
 **   18 **HESSE 
 **********

 FCN=   6456.356     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4779        6.2368        .50000       -.52871    
   3  Normalizat    1.3313        .29516        .33289E-03   -.82636    
   4  Prefactor     .89274        .15103        .20170E-03   -.96395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60503e-11
Minuit parameter uncertainties:
  1  6.49268e-05
  2  4.31755
  3  0.295532
  4  0.151102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214385': 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) = 6456.35634616
delta logL = 6.36346157989e-08

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.493e-05  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.478e+00  4.318e+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:  8.927e-01  1.511e-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.331e+00  2.955e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/214385/cmap_HighResolution_328492801_328752001_4FGL_J1159.2-2227_daily_bin344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-04 18:35:33.026517', job_id='214385', GAL2='0.89', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630805733.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='344' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:35:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 214385: <4FGL_J1159.2-2227_daily_bin344> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin344> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:20:42 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:20:44 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:44 2021
Terminated at Sat Sep  4 18:35:33 2021
Results reported at Sat Sep  4 18:35:33 2021

Your job looked like:

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

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

