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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1006
RA = 179.811, Dec = -22.4605
tmin = 500083201, tmax = 500342401
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='217645', job_status='RUN', time_executed='2021-09-04 18:31:40.955325', time_epoch_executed='1630805500.96' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217645/ft1_4FGL_J1159.2-2227_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217645/ft2_4FGL_J1159.2-2227_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217645/ft1_4FGL_J1159.2-2227_daily_bin1006.fits outfile=/scratch/kocevski/217645/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1006.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=500083201.0 tmax=500342401.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.68
user 5.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217645/ft1_filtered_4FGL_J1159.2-2227_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/217645/ft2_4FGL_J1159.2-2227_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/217645/ltcube_500083201_500342401_4FGL_J1159.2-2227_daily_bin1006.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/217645/ft2_4FGL_J1159.2-2227_daily_bin1006.fits
.....................!
real 16.19
user 15.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217645/ft1_filtered_4FGL_J1159.2-2227_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/217645/ft2_4FGL_J1159.2-2227_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/217645/ltcube_500083201_500342401_4FGL_J1159.2-2227_daily_bin1006.fits outfile=/scratch/kocevski/217645/expmap_500083201_500342401_4FGL_J1159.2-2227_daily_bin1006.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/217645/ltcube_500083201_500342401_4FGL_J1159.2-2227_daily_bin1006.fits
.....................!
real 189.70
user 185.14
sys 4.17

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/217645/ft1_filtered_4FGL_J1159.2-2227_daily_bin1006.fits scfile=/scratch/kocevski/217645/ft2_4FGL_J1159.2-2227_daily_bin1006.fits outfile=/scratch/kocevski/217645/cmap_500083201_500342401_4FGL_J1159.2-2227_daily_bin1006.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217645/ft1_filtered_4FGL_J1159.2-2227_daily_bin1006.fits scfile=/scratch/kocevski/217645/ft2_4FGL_J1159.2-2227_daily_bin1006.fits outfile=/scratch/kocevski/217645/cmap_HighResolution_500083201_500342401_4FGL_J1159.2-2227_daily_bin1006.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/217645/ft1_filtered_4FGL_J1159.2-2227_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/217645/ft2_4FGL_J1159.2-2227_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217645/Model_4FGL_J1159.2-2227_daily_bin1006.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/217645/ft1_filtered_4FGL_J1159.2-2227_daily_bin1006.fits.....................!
real 64.81
user 63.42
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.775       1.0000         .10000E-03   10000.    
     4 'Prefactor '    76.251       1.0000         .10000E-03   10000.    
     5 'norm      '    .62759       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12263E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.330       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.177       1.0000         .10000E-03   10000.    
    13 'norm      '    .16174       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.255       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.559       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2663       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.414       1.0000         .10000E-03   10000.    
    23 'norm      '    .92461       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4433       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75286       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=   7463.817     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2977 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.609       -.25447E-05** at limit **
   2  Prefactor     .10000E-03    12.748        .34713E-06** at limit **
   3  Prefactor     10.776        11.239       -.63327E-06   -.54115E-04
   4  Prefactor     76.274        45.772        .12527E-04    .28499E-04
   5  norm          .62567        .86542       -.70358E-06   -.34679E-02
   6  Prefactor     .10000E-03    1.9801        .21798E-10** at limit **
   7  Prefactor     .10000E-03    7.8344       -.96621E-06** at limit **
   8  Prefactor     .10000E-03    3.3230       -.78041E-08** at limit **
   9  Prefactor     .10000E-03    5.3514       -.61380E-08** at limit **
  10  Prefactor     10.328        14.899       -.76954E-06   -.14201E-04
  11  norm          .10000E-03    5.9376       -.17626E-07** at limit **
  12  Prefactor     16.309        16.892        .22510E-05   -.28787E-03
  13  norm          .11247        3.1572        .54263E-06   -.22908E-03
  14  Prefactor     4.7213        4.3807        .18136E-06   -.37953E-03
  15  Prefactor     30.222        35.362       -.31229E-04   -.43860E-04
  16  Prefactor     .10000E-03    22.551        .24953E-05** at limit **
  17  Prefactor     .10000E-03    7.7096        .12676E-05** at limit **
  18  Prefactor     .10000E-03    15.908       -.10785E-05** at limit **
  19  Prefactor     15.559        15.188        .13627E-06   -.17528E-04
  20  Prefactor     .10000E-03    1.8281        .77898E-08** at limit **
  21  Prefactor     8.2663        2.5850        .45258E-08    .11540E-03
  22  Prefactor     29.414        15.418        .61743E-06   -.13316E-04
  23  norm          .92463        .72212       -.13146E-07   -.96656E-04
  24  Normalizat    1.4432        .20866       -.17497E-06   -.24143E-04
  25  Prefactor     .75287        .10725        .52081E-06   -.12384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7762
  Prefactor  = 76.2736
  norm       = 0.625675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3281
  norm       = 0.0001
  Prefactor  = 16.3092
  norm       = 0.112475
  Prefactor  = 4.72133
  Prefactor  = 30.2217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5591
  Prefactor  = 0.0001
  Prefactor  = 8.26635
  Prefactor  = 29.4141
  norm       = 0.924625
  Normalizat = 1.44324
  Prefactor  = 0.752866
 **********
 **   18 **HESSE 
 **********

 FCN=   7463.817     FROM HESSE     STATUS=OK           435 CALLS     3412 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.776        11.257        .12205E-03   -1.5051    
   4  Prefactor     76.274        45.719        .22992E-03   -1.3959    
   5  norm          .62567        .77822        .89991E-03   -1.5550    
   6  Prefactor     .10000E-03    1.9840        .11872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.503        .30035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.328        14.852        .12467E-03   -1.5065    
  11  norm          .10000E-03    5.9392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.309        48.133        .99581E-04   -1.4900    
  13  norm          .11247        332.73        .22451E-02   -1.5641    
  14  Prefactor     4.7213        4.4041        .16564E-03   -1.5273    
  15  Prefactor     30.222        35.534        .72842E-04   -1.4608    
  16  Prefactor     .10000E-03    22.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.559        15.190        .10154E-03   -1.4919    
  20  Prefactor     .10000E-03    1.8331        .11406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.2663        2.5854        .75758E-04   -1.5133    
  22  Prefactor     29.414        15.420        .73873E-04   -1.4623    
  23  norm          .92463        .72304        .63071E-04   -1.5516    
  24  Normalizat    1.4432        .24985        .28262E-03   -.79386    
  25  Prefactor     .75287        .12818        .20041E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11207e-09
Minuit parameter uncertainties:
  1  3.44053e-05
  2  7.90618e-07
  3  11.2589
  4  45.7398
  5  0.778233
  6  4.25788e-07
  7  5.04326e-07
  8  5.08711e-05
  9  5.10385e-07
  10  14.8573
  11  6.6115e-07
  12  48.2478
  13  12.2985
  14  4.40439
  15  35.5589
  16  1.64932e-05
  17  9.7068e-05
  18  0.000107441
  19  15.1941
  20  2.36493e-07
  21  2.58539
  22  15.4222
  23  0.723042
  24  0.250061
  25  0.128227
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.631e+01  4.825e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.529e-01  1.282e-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.443e+00  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.23
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 1.68e-07
Energy Flux (Fixed Index): 1.75e-05 +/- 5.18e-05

TS (Fixed Index): 2.23
Ra Dec: 179.811 -22.460
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217645/likelihoodResults_500083201_500342401_4FGL_J1159.2-2227_daily_bin1006.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): 0
logL (Free Index) = 7461.85314938
delta logL = 1.96431479683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7461.82807013
delta logL = 1.98939404021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3123       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0933       1.0000          .0000       10.000    
     3 'Normalizat'    1.3302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79187       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=   7461.828     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      263 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3124        7.8444        .96188E-02   -.78455E-04
   2  Index         4.0934        1.9241        .80270E-01    .24824E-03
   3  Normalizat    1.3301        .66195E-01    .65955E-01    .95479E-05
   4  Prefactor     .79189        .34884E-01    .43611E-01    .10872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31238
  Index      = 4.09341
  Normalizat = 1.33012
  Prefactor  = 0.791887
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.828     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3124        14.238        .44863E-04   -1.5479    
   2  Index         4.0934        2.8271        .32167E-02   -.18233    
   3  Normalizat    1.3301        .22940        .29177E-03   -.82672    
   4  Prefactor     .79189        .12058        .19579E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.18329e-09
Minuit parameter uncertainties:
  1  8.64767
  2  3.01197
  3  0.229574
  4  0.120625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217645': 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) = 7461.82806994
delta logL = 1.98939423265

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.312e+00  8.648e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  4.093e+00  3.012e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.919e-01  1.206e-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.330e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.54
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 4.09 +/- 3.01
Photon Flux (Free Index): 1.41e-07 +/- 6.79e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/217645/cmap_HighResolution_500083201_500342401_4FGL_J1159.2-2227_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='2.07e-05', photon_flux_error='1.68e-07', dlogl='1.99e+00', energy_flux='1.75e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-04 18:46:09.470780', photon_index_error2='3.01', photon_index2='4.09', ts='2.23', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.22e-05', EG='1.44', time_epoch_completed='1630806369.47', return_code='0', job_id='217645', GAL2='0.79', EG2='1.33', return_code2='102', energy_flux_error='5.18e-05', photon_flux_error2='6.79e-08', ts2='6.54', photon_index='2.45' WHERE bin_id='1006' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 217645: <4FGL_J1159.2-2227_daily_bin1006> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin1006> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:31:11 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:31:13 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:13 2021
Terminated at Sat Sep  4 18:46:09 2021
Results reported at Sat Sep  4 18:46:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1006 179.811 -22.4605 500083201 500342401 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 :                                   851.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

