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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin357
RA = 179.811, Dec = -22.4605
tmin = 331862401, tmax = 332121601
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='214405', job_status='RUN', time_executed='2021-09-04 18:23:51.647575', time_epoch_executed='1630805031.65' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214405/ft1_4FGL_J1159.2-2227_daily_bin357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214405/ft2_4FGL_J1159.2-2227_daily_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214405/ft1_4FGL_J1159.2-2227_daily_bin357.fits outfile=/scratch/kocevski/214405/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin357.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=331862401.0 tmax=332121601.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 4.41
user 4.12
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214405/ft2_4FGL_J1159.2-2227_daily_bin357.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/214405/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin357.fits evtable="EVENTS" outfile="/scratch/kocevski/214405/ft1_filtered_4FGL_J1159.2-2227_daily_bin357.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.55
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214405/ft1_filtered_4FGL_J1159.2-2227_daily_bin357.fits" evtable="EVENTS" scfile=/scratch/kocevski/214405/ft2_4FGL_J1159.2-2227_daily_bin357.fits sctable="SC_DATA" outfile=/scratch/kocevski/214405/ltcube_331862401_332121601_4FGL_J1159.2-2227_daily_bin357.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/214405/ft2_4FGL_J1159.2-2227_daily_bin357.fits
.....................!
real 11.98
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214405/ft1_filtered_4FGL_J1159.2-2227_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/214405/ft2_4FGL_J1159.2-2227_daily_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/214405/ltcube_331862401_332121601_4FGL_J1159.2-2227_daily_bin357.fits outfile=/scratch/kocevski/214405/expmap_331862401_332121601_4FGL_J1159.2-2227_daily_bin357.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/214405/ltcube_331862401_332121601_4FGL_J1159.2-2227_daily_bin357.fits
.....................!
real 189.29
user 184.95
sys 3.98

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/214405/ft1_filtered_4FGL_J1159.2-2227_daily_bin357.fits scfile=/scratch/kocevski/214405/ft2_4FGL_J1159.2-2227_daily_bin357.fits outfile=/scratch/kocevski/214405/cmap_331862401_332121601_4FGL_J1159.2-2227_daily_bin357.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214405/ft1_filtered_4FGL_J1159.2-2227_daily_bin357.fits scfile=/scratch/kocevski/214405/ft2_4FGL_J1159.2-2227_daily_bin357.fits outfile=/scratch/kocevski/214405/cmap_HighResolution_331862401_332121601_4FGL_J1159.2-2227_daily_bin357.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/214405/ft1_filtered_4FGL_J1159.2-2227_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/214405/ft2_4FGL_J1159.2-2227_daily_bin357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214405/Model_4FGL_J1159.2-2227_daily_bin357.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/214405/ft1_filtered_4FGL_J1159.2-2227_daily_bin357.fits.....................!
real 55.51
user 54.29
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.705       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1092       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5789       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .61722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.587       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    21.811       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.6584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1993       1.0000         .10000E-03   10000.    
    15 'Prefactor '    85.355       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.931       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9763       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.077       1.0000         .10000E-03   10000.    
    23 'norm      '    4.0849       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3994       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97872       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=   6178.228     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2861 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.930       -.16009E-05** at limit **
   2  Prefactor     .10000E-03    18.268       -.62864E-06** at limit **
   3  Prefactor     12.706        12.370        .89979E-07    .21176E-05
   4  Prefactor     .10000E-03    57.859       -.37711E-05** at limit **
   5  norm          3.1088        1.8516        .38994E-07    .74795E-04
   6  Prefactor     3.5790        11.633        .31029E-05    .40819E-05
   7  Prefactor     .10000E-03    28.558        .91706E-06** at limit **
   8  Prefactor     .61756        9.5370        .16651E-05   -.60550E-05
   9  Prefactor     12.583        25.575        .42286E-06   -.24595E-05
  10  Prefactor     .10000E-03    22.729        .70082E-06** at limit **
  11  norm          21.809        31.247        .28951E-06   -.31640E-06
  12  Prefactor     .10000E-03    19.136       -.11256E-05** at limit **
  13  norm          8.6649        6.7108        .41230E-06    .30898E-04
  14  Prefactor     3.1993        3.3901       -.15057E-07   -.22498E-04
  15  Prefactor     85.341        66.174        .10683E-05   -.16595E-04
  16  Prefactor     .10000E-03    8.5222       -.33278E-07** at limit **
  17  Prefactor     .10000E-03    14.212        .11022E-06** at limit **
  18  Prefactor     .10000E-03    77.732        .51866E-05** at limit **
  19  Prefactor     26.930        26.988        .17218E-06   -.40966E-05
  20  Prefactor     2.9765        5.1249        .20105E-06    .17554E-05
  21  Prefactor     8.9644        3.3130        .80101E-09   -.56598E-05
  22  Prefactor     10.076        17.077        .17819E-06   -.44178E-05
  23  norm          4.0848        1.7156        .16247E-07   -.17124E-04
  24  Normalizat    1.3995        .29420       -.15133E-05    .53194E-05
  25  Prefactor     .97867        .14526        .20287E-06   -.47637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7059
  Prefactor  = 0.0001
  norm       = 3.10884
  Prefactor  = 3.57898
  Prefactor  = 0.0001
  Prefactor  = 0.61756
  Prefactor  = 12.583
  Prefactor  = 0.0001
  norm       = 21.8088
  Prefactor  = 0.0001
  norm       = 8.66493
  Prefactor  = 3.19933
  Prefactor  = 85.341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9302
  Prefactor  = 2.97647
  Prefactor  = 8.96445
  Prefactor  = 10.0758
  norm       = 4.08484
  Normalizat = 1.39949
  Prefactor  = 0.978667
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.228     FROM HESSE     STATUS=OK           433 CALLS     3294 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.706        12.377        .11238E-03   -1.4995    
   4  Prefactor     .10000E-03    58.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1088        1.8509        .77926E-04   -1.5355    
   6  Prefactor     3.5790        11.667        .10681E-02   -1.5330    
   7  Prefactor     .10000E-03    28.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .61756        9.7343        .46176E-03   -1.5551    
   9  Prefactor     12.583        25.634        .11291E-03   -1.4998    
  10  Prefactor     .10000E-03    22.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          21.809        31.323        .85765E-04   -1.4774    
  12  Prefactor     .10000E-03    19.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.6649        6.7154        .13623E-03   -1.5119    
  14  Prefactor     3.1993        3.3899        .14482E-03   -1.5350    
  15  Prefactor     85.341        65.951        .21741E-03   -1.3858    
  16  Prefactor     .10000E-03    8.5236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    77.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.930        26.997        .77196E-04   -1.4670    
  20  Prefactor     2.9765        5.1072        .22445E-03   -1.5363    
  21  Prefactor     8.9644        3.3119        .83695E-04   -1.5109    
  22  Prefactor     10.076        17.080        .12623E-03   -1.5073    
  23  norm          4.0848        1.7169        .64417E-04   -1.5304    
  24  Normalizat    1.3995        .34956        .35225E-03   -.80643    
  25  Prefactor     .97867        .17444        .21163E-03   -.93444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38974e-11
Minuit parameter uncertainties:
  1  1.19421e-05
  2  1.77221e-06
  3  12.3797
  4  1.64146e-05
  5  1.85092
  6  11.6745
  7  6.08239e-06
  8  4.90422
  9  25.6564
  10  5.85716e-06
  11  31.3462
  12  0.000119628
  13  6.71602
  14  3.39009
  15  66.0075
  16  8.98134e-07
  17  2.52174e-05
  18  0.000123532
  19  27.0093
  20  5.10794
  21  3.31199
  22  17.0886
  23  1.71687
  24  0.350163
  25  0.174543
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.196e-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:  9.787e-01  1.745e-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.399e+00  3.502e-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.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214405/likelihoodResults_331862401_332121601_4FGL_J1159.2-2227_daily_bin357.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) = 6178.22842767
delta logL = -0.000245985559559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6178.2281835
delta logL = -1.81233917829e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6548       1.0000          .0000       10.000    
     3 'Normalizat'    1.3995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97867       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=   6178.228     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      289 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10805E-03    3.8639        .18142E-01** at limit **
   2  Index         2.5344        7.1440        .50000        .39490E-04
   3  Normalizat    1.3995        .35969E-02    .35225E-03    .56803E-05
   4  Prefactor     .97867        .18596E-02    .21162E-03   -.19340E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108051
  Index      = 2.53436
  Normalizat = 1.39949
  Prefactor  = 0.978667
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.228     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      318 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10805E-03    215.01        .59387E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5344        6.6468        .50000       -.51568    
   3  Normalizat    1.3995        .26900E-01    .14090E-04   -.80643    
   4  Prefactor     .97867        .13907E-01    .84650E-05   -.93444    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50511e-08
Minuit parameter uncertainties:
  1  0.0835112
  2  297.669
  3  0.0268999
  4  0.0139067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214405': 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) = 6178.22818261
delta logL = -9.22957951843e-07

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.081e-04  8.351e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.534e+00  2.977e+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:  9.787e-01  1.391e-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.399e+00  2.690e-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/214405/cmap_HighResolution_331862401_332121601_4FGL_J1159.2-2227_daily_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-04 18:35:38.465555', job_id='214405', GAL2='0.98', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630805738.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-9.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='357' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 214405: <4FGL_J1159.2-2227_daily_bin357> in cluster <slac> Done

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

Your job looked like:

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

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

