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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1008
RA = 179.811, Dec = -22.4605
tmin = 500601601, tmax = 500860801
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='217651', job_status='RUN', time_executed='2021-09-04 18:32:09.951870', time_epoch_executed='1630805529.95' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217651/ft1_4FGL_J1159.2-2227_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217651/ft2_4FGL_J1159.2-2227_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217651/ft1_4FGL_J1159.2-2227_daily_bin1008.fits outfile=/scratch/kocevski/217651/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1008.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=500601601.0 tmax=500860801.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.09
user 4.86
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217651/ft1_filtered_4FGL_J1159.2-2227_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/217651/ft2_4FGL_J1159.2-2227_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/217651/ltcube_500601601_500860801_4FGL_J1159.2-2227_daily_bin1008.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/217651/ft2_4FGL_J1159.2-2227_daily_bin1008.fits
.....................!
real 12.23
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217651/ft1_filtered_4FGL_J1159.2-2227_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/217651/ft2_4FGL_J1159.2-2227_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/217651/ltcube_500601601_500860801_4FGL_J1159.2-2227_daily_bin1008.fits outfile=/scratch/kocevski/217651/expmap_500601601_500860801_4FGL_J1159.2-2227_daily_bin1008.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/217651/ltcube_500601601_500860801_4FGL_J1159.2-2227_daily_bin1008.fits
.....................!
real 189.72
user 185.24
sys 4.05

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/217651/ft1_filtered_4FGL_J1159.2-2227_daily_bin1008.fits scfile=/scratch/kocevski/217651/ft2_4FGL_J1159.2-2227_daily_bin1008.fits outfile=/scratch/kocevski/217651/cmap_500601601_500860801_4FGL_J1159.2-2227_daily_bin1008.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/217651/ft1_filtered_4FGL_J1159.2-2227_daily_bin1008.fits scfile=/scratch/kocevski/217651/ft2_4FGL_J1159.2-2227_daily_bin1008.fits outfile=/scratch/kocevski/217651/cmap_HighResolution_500601601_500860801_4FGL_J1159.2-2227_daily_bin1008.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217651/ft1_filtered_4FGL_J1159.2-2227_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/217651/ft2_4FGL_J1159.2-2227_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217651/Model_4FGL_J1159.2-2227_daily_bin1008.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/217651/ft1_filtered_4FGL_J1159.2-2227_daily_bin1008.fits.....................!
real 64.18
user 62.84
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68922E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0900       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8552       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12364E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10744E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8762       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .90933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.338       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.352       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9407       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.056       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0178       1.0000         .10000E-03   10000.    
    23 'norm      '    .98703E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92373       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1435       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=   7273.273     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     2966 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10895E-03    70.934       -.59864E-05** at limit **
   2  Prefactor     .10000E-03    17.997       -.63324E-07** at limit **
   3  Prefactor     10.057        11.228        .30276E-07   -.14593E-05
   4  Prefactor     .10000E-03    32.886        .33342E-06** at limit **
   5  norm          1.0908        1.0047        .29402E-07   -.17565E-03
   6  Prefactor     .10000E-03    1.9251       -.16063E-07** at limit **
   7  Prefactor     .10000E-03    13.956       -.38300E-07** at limit **
   8  Prefactor     2.8524        5.9259        .45585E-05   -.30722E-03
   9  Prefactor     .10000E-03    26.492        .14300E-06** at limit **
  10  Prefactor     .10000E-03    11.250        .22714E-07** at limit **
  11  norm          .10000E-03    7.3410       -.19612E-07** at limit **
  12  Prefactor     .10000E-03    5.9238        .38842E-06** at limit **
  13  norm          4.8774        4.8146        .33609E-06    .13107E-03
  14  Prefactor     .91923        7.7536        .19391E-05    .17734E-03
  15  Prefactor     23.371        63.341       -.32707E-05    .15810E-04
  16  Prefactor     19.274        32.018       -.16024E-05   -.11292E-03
  17  Prefactor     .10001E-03    19.504        .37075E-05** at limit **
  18  Prefactor     .10000E-03    28.661        .11999E-05** at limit **
  19  Prefactor     10.393        19.260        .24350E-06   -.86814E-05
  20  Prefactor     7.9428        8.7573        .10061E-06    .99478E-05
  21  Prefactor     12.059        3.6996        .14855E-07   -.40382E-04
  22  Prefactor     8.0427        14.432        .95417E-06   -.38264E-04
  23  norm          .98678E-01    .46329        .14236E-06   -.31253E-03
  24  Normalizat    .92366        .23674       -.25741E-05   -.80655E-04
  25  Prefactor     1.1435        .12487        .22233E-06   -.22633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108952
  Prefactor  = 0.0001
  Prefactor  = 10.0575
  Prefactor  = 0.0001
  norm       = 1.09084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.85237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.87744
  Prefactor  = 0.919233
  Prefactor  = 23.3711
  Prefactor  = 19.2738
  Prefactor  = 0.000100015
  Prefactor  = 0.000100005
  Prefactor  = 10.393
  Prefactor  = 7.94279
  Prefactor  = 12.0593
  Prefactor  = 8.04269
  norm       = 0.0986776
  Normalizat = 0.923661
  Prefactor  = 1.14348
 **********
 **   18 **HESSE 
 **********

 FCN=   7273.273     FROM HESSE     STATUS=OK           443 CALLS     3409 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10895E-03    57.861        .20929       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.057        11.235        .12634E-03   -1.5074    
   4  Prefactor     .10000E-03    32.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0908        .93777        .78612E-03   -1.5499    
   6  Prefactor     .10000E-03    1.9269        .11556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8524        5.9525        .12030E-02   -1.5370    
   9  Prefactor     .10000E-03    26.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.3432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8774        4.8019        .17051E-03   -1.5266    
  14  Prefactor     .91923        7.5807        .39589E-02   -1.5516    
  15  Prefactor     23.371        63.317        .82779E-04   -1.4741    
  16  Prefactor     19.274        31.188        .91079E-04   -1.4830    
  17  Prefactor     .10001E-03    20.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.393        19.246        .12453E-03   -1.5063    
  20  Prefactor     7.9428        8.7646        .14229E-03   -1.5144    
  21  Prefactor     12.059        3.7050        .82970E-04   -1.5013    
  22  Prefactor     8.0427        14.435        .14160E-03   -1.5141    
  23  norm          .98678E-01    .90100        .11185E-02   -1.5645    
  24  Normalizat    .92366        .27038        .36670E-03   -.95634    
  25  Prefactor     1.1435        .14470        .18159E-03   -.88089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55116e-08
Minuit parameter uncertainties:
  1  0.0455614
  2  1.85226e-05
  3  11.2375
  4  8.07214e-05
  5  0.937785
  6  1.08068e-06
  7  8.01245e-06
  8  5.9537
  9  0.000131895
  10  5.37637e-07
  11  3.24958e-06
  12  5.93079e-05
  13  4.80229
  14  5.28017
  15  63.5004
  16  31.214
  17  0.00110217
  18  0.000750506
  19  19.2577
  20  8.76605
  21  3.70512
  22  14.4416
  23  0.596059
  24  0.270783
  25  0.144748
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  5.931e-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:  1.143e+00  1.447e-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:  9.237e-01  2.708e-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: 8.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217651/likelihoodResults_500601601_500860801_4FGL_J1159.2-2227_daily_bin1008.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) = 7273.27335483
delta logL = -0.000801542740192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7273.27255327
delta logL = 1.75150489667e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4242       1.0000          .0000       10.000    
     3 'Normalizat'    .92361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1435       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=   7273.273     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10361E-03    2.1974        .18142E-01** at limit **
   2  Index         2.3065        7.2795        .50000        .24616E-04
   3  Normalizat    .92366        .32527E-02    .36670E-03    .13021E-05
   4  Prefactor     1.1435        .17840E-02    .18159E-03    .63394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103607
  Index      = 2.30654
  Normalizat = 0.92366
  Prefactor  = 1.14349
 **********
 **   18 **HESSE 
 **********

 FCN=   7273.273     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10361E-03    74.465        .21460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3065        7.9409        .50000       -.56888    
   3  Normalizat    .92366        .19074E-01    .14668E-04   -.95634    
   4  Prefactor     1.1435        .10461E-01    .36318E-04   -.88089    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.45282e-08
Minuit parameter uncertainties:
  1  0.0328198
  2  437.239
  3  0.0190737
  4  0.0104612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217651': 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) = 7273.2725526
delta logL = 6.9125326263e-07

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.036e-04  3.282e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.307e+00  4.372e+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:  1.143e+00  1.046e-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:  9.237e-01  1.907e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/217651/cmap_HighResolution_500601601_500860801_4FGL_J1159.2-2227_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.28e-08', time_completed='2021-09-04 18:45:44.042071', job_id='217651', GAL2='1.14', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630806344.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1008' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:45:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 217651: <4FGL_J1159.2-2227_daily_bin1008> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin1008> 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) <bullet0228>, 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:45:44 2021
Results reported at Sat Sep  4 18:45:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1008 179.811 -22.4605 500601601 500860801 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 :                                   810.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

