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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin330
RA = 179.811, Dec = -22.4605
tmin = 324864001, tmax = 325123201
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='214363', job_status='RUN', time_executed='2021-09-04 18:20:57.822558', time_epoch_executed='1630804857.82' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214363

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214363/ft1_4FGL_J1159.2-2227_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214363/ft2_4FGL_J1159.2-2227_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214363/ft1_4FGL_J1159.2-2227_daily_bin330.fits outfile=/scratch/kocevski/214363/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin330.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=324864001.0 tmax=325123201.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.65
user 5.38
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214363/ft1_filtered_4FGL_J1159.2-2227_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/214363/ft2_4FGL_J1159.2-2227_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/214363/ltcube_324864001_325123201_4FGL_J1159.2-2227_daily_bin330.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/214363/ft2_4FGL_J1159.2-2227_daily_bin330.fits
.....................!
real 11.87
user 11.51
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214363/ft1_filtered_4FGL_J1159.2-2227_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/214363/ft2_4FGL_J1159.2-2227_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/214363/ltcube_324864001_325123201_4FGL_J1159.2-2227_daily_bin330.fits outfile=/scratch/kocevski/214363/expmap_324864001_325123201_4FGL_J1159.2-2227_daily_bin330.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/214363/ltcube_324864001_325123201_4FGL_J1159.2-2227_daily_bin330.fits
.....................!
real 192.61
user 186.85
sys 4.81

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/214363/ft1_filtered_4FGL_J1159.2-2227_daily_bin330.fits scfile=/scratch/kocevski/214363/ft2_4FGL_J1159.2-2227_daily_bin330.fits outfile=/scratch/kocevski/214363/cmap_324864001_325123201_4FGL_J1159.2-2227_daily_bin330.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214363/ft1_filtered_4FGL_J1159.2-2227_daily_bin330.fits scfile=/scratch/kocevski/214363/ft2_4FGL_J1159.2-2227_daily_bin330.fits outfile=/scratch/kocevski/214363/cmap_HighResolution_324864001_325123201_4FGL_J1159.2-2227_daily_bin330.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/214363/ft1_filtered_4FGL_J1159.2-2227_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/214363/ft2_4FGL_J1159.2-2227_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214363/Model_4FGL_J1159.2-2227_daily_bin330.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/214363/ft1_filtered_4FGL_J1159.2-2227_daily_bin330.fits.....................!
real 66.49
user 65.02
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    113.67       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.298       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49404E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10914E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.591       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8832       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5766       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.767       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7785       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9682       1.0000         .10000E-03   10000.    
    23 'norm      '    4.9323       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83226       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=   7745.722     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2885 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     113.59        111.76       -.10579E-05   -.41265E-04
   2  Prefactor     24.291        30.002       -.48963E-07    .15955E-04
   3  Prefactor     .10000E-03    2.8293       -.64818E-07** at limit **
   4  Prefactor     .10000E-03    103.31       -.28237E-05** at limit **
   5  norm          4.4778        1.5147       -.67957E-07   -.45726E-04
   6  Prefactor     .10000E-03    2.6333       -.58989E-07** at limit **
   7  Prefactor     26.903        33.286       -.35707E-06   -.10346E-04
   8  Prefactor     .10000E-03    4.0131       -.28400E-05** at limit **
   9  Prefactor     .10000E-03    5.8598        .60402E-07** at limit **
  10  Prefactor     23.546        29.397        .26744E-05    .37202E-03
  11  norm          .10000E-03    13.033        .24806E-06** at limit **
  12  Prefactor     8.8836        8.8666        .25115E-07    .15263E-03
  13  norm          2.1658        2.4197        .26863E-07    .15461E-03
  14  Prefactor     4.5787        4.4486        .18573E-06    .47855E-03
  15  Prefactor     .10000E-03    55.092        .53691E-06** at limit **
  16  Prefactor     .10000E-03    25.797        .30114E-06** at limit **
  17  Prefactor     .10000E-03    6.9426        .68575E-07** at limit **
  18  Prefactor     .10000E-03    13.513        .54624E-07** at limit **
  19  Prefactor     24.771        20.408       -.18675E-06    .26970E-04
  20  Prefactor     .10000E-03    1.7668        .73303E-07** at limit **
  21  Prefactor     8.7786        2.5456       -.24891E-07   -.45276E-04
  22  Prefactor     4.9690        8.2642        .17322E-06    .55657E-04
  23  norm          4.9324        1.3183       -.24691E-07    .42322E-05
  24  Normalizat    1.2583        .20826        .18871E-05    .46422E-03
  25  Prefactor     .83204        .10957       -.63186E-06    .70265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 113.585
  Prefactor  = 24.2915
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.47778
  Prefactor  = 0.0001
  Prefactor  = 26.9035
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 23.5455
  norm       = 0.0001
  Prefactor  = 8.88361
  norm       = 2.16581
  Prefactor  = 4.57867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7709
  Prefactor  = 0.0001
  Prefactor  = 8.77857
  Prefactor  = 4.96902
  norm       = 4.93244
  Normalizat = 1.25831
  Prefactor  = 0.832037
 **********
 **   18 **HESSE 
 **********

 FCN=   7745.722     FROM HESSE     STATUS=OK           425 CALLS     3310 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     113.59        111.68        .18867E-03   -1.3572    
   2  Prefactor     24.291        30.005        .81264E-04   -1.4722    
   3  Prefactor     .10000E-03    2.8334        .14456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    107.05        .42327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4778        1.5165        .59863E-04   -1.5285    
   6  Prefactor     .10000E-03    2.6378        .13947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.903        33.328        .77224E-04   -1.4670    
   8  Prefactor     .10000E-03    4.8995        .25657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.546        31.000        .82471E-04   -1.4737    
  11  norm          .10000E-03    13.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8836        8.8562        .13448E-03   -1.5112    
  13  norm          2.1658        2.4104        .13705E-03   -1.5414    
  14  Prefactor     4.5787        4.4467        .17355E-03   -1.5280    
  15  Prefactor     .10000E-03    55.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.771        20.425        .80492E-04   -1.4712    
  20  Prefactor     .10000E-03    1.7722        .11421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.7786        2.5463        .73713E-04   -1.5115    
  22  Prefactor     4.9690        8.2534        .18043E-03   -1.5262    
  23  norm          4.9324        1.3191        .50400E-04   -1.5264    
  24  Normalizat    1.2583        .24363        .30705E-03   -.84819    
  25  Prefactor     .83204        .12744        .19615E-03   -.98558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.451e-09
Minuit parameter uncertainties:
  1  111.886
  2  30.0234
  3  3.23169e-06
  4  0.000906057
  5  1.5165
  6  3.37174e-06
  7  33.3506
  8  0.000252927
  9  1.99706e-06
  10  31.0207
  11  3.29149e-05
  12  8.85749
  13  2.41053
  14  4.447
  15  0.000133513
  16  6.11473e-06
  17  1.60441e-06
  18  1.01248e-05
  19  20.4304
  20  1.82053e-06
  21  2.54631
  22  8.25528
  23  1.31915
  24  0.243848
  25  0.127481
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  8.884e+00  8.857e+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

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  8.320e-01  1.275e-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.258e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.09e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 9.54e-06 +/- 9.51e-06

TS (Fixed Index): 2.45
Ra Dec: 179.811 -22.460
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214363/likelihoodResults_324864001_325123201_4FGL_J1159.2-2227_daily_bin330.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) = 7745.15231887
delta logL = 0.569310439309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7745.01807927
delta logL = 0.70355003954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.509       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6985       1.0000          .0000       10.000    
     3 'Normalizat'    1.2780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82554       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=   7745.018     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.526        623.00        .25425E-02   -.11166E-03
   2  Index         1.6987        5.2541        .27876        .22848E-04
   3  Normalizat    1.2781        .15355        .68936E-01    .37054E-03
   4  Prefactor     .82549        .57222E-01    .44049E-01    .25345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5257
  Index      = 1.69866
  Normalizat = 1.27809
  Prefactor  = 0.825493
 **********
 **   18 **HESSE 
 **********

 FCN=   7745.018     FROM HESSE     STATUS=OK            27 CALLS      249 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.526        14.691        .10170E-03   -1.4920    
   2  Index         1.6987        .56454        .97399E-02   -.72118    
   3  Normalizat    1.2781        .23634        .30500E-03   -.84223    
   4  Prefactor     .82549        .12628        .19680E-03   -.98795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10944e-10
Minuit parameter uncertainties:
  1  14.6947
  2  0.566692
  3  0.236543
  4  0.12632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214363': 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) = 7745.01807857
delta logL = 0.703550732297

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.553e+01  1.469e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.699e+00  5.667e-01  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.255e-01  1.263e-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.278e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.87
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 1.70 +/- 0.57
Photon Flux (Free Index): 1.65e-08 +/- 2.00e-08
Energy Flux (Free Index): 2.71e-05 +/- 3.83e-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/214363/cmap_HighResolution_324864001_325123201_4FGL_J1159.2-2227_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.35e-03', comment='SUCCESS', photon_flux='3.09e-08', energy_flux2='2.71e-05', photon_flux_error='3.08e-08', dlogl='7.04e-01', energy_flux='9.54e-06', photon_flux2='1.65e-08', job_status='DONE', time_completed='2021-09-04 18:35:04.348728', photon_index_error2='0.57', photon_index2='1.70', ts='2.45', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='3.83e-05', EG='1.26', time_epoch_completed='1630805704.35', return_code='0', job_id='214363', GAL2='0.83', EG2='1.28', return_code2='0', energy_flux_error='9.51e-06', photon_flux_error2='2.00e-08', ts2='3.87', photon_index='2.45' WHERE bin_id='330' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:35:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 214363: <4FGL_J1159.2-2227_daily_bin330> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin330 179.811 -22.4605 324864001 325123201 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 :                                   843.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            867 sec.

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

