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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1475
RA = 179.843, Dec = -21.7038
tmin = 621648001, tmax = 621907201
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='230044', job_status='RUN', time_executed='2021-09-04 19:06:09.425166', time_epoch_executed='1630807569.43' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230044

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230044/ft1_4FGL_J1159.3-2142_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230044/ft1_4FGL_J1159.3-2142_daily_bin1475.fits outfile=/scratch/kocevski/230044/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1475.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=621648001.0 tmax=621907201.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.29
user 5.05
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.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/230044/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1475.fits evtable="EVENTS" outfile="/scratch/kocevski/230044/ft1_filtered_4FGL_J1159.3-2142_daily_bin1475.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230044/ft1_filtered_4FGL_J1159.3-2142_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/230044/ltcube_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.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/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits
.....................!
real 11.94
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230044/ft1_filtered_4FGL_J1159.3-2142_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/230044/ltcube_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.fits outfile=/scratch/kocevski/230044/expmap_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.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/230044/ltcube_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.fits
.....................!
real 190.72
user 184.96
sys 5.36

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.3-2142 @ 179.843 -21.7038

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/230044/ft1_filtered_4FGL_J1159.3-2142_daily_bin1475.fits scfile=/scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits outfile=/scratch/kocevski/230044/cmap_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.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.843 yref=-21.7038 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230044/ft1_filtered_4FGL_J1159.3-2142_daily_bin1475.fits scfile=/scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits outfile=/scratch/kocevski/230044/cmap_HighResolution_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.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.843 yref=-21.7038 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230044/ft1_filtered_4FGL_J1159.3-2142_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230044/Model_4FGL_J1159.3-2142_daily_bin1475.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/230044/ft1_filtered_4FGL_J1159.3-2142_daily_bin1475.fits.....................!
real 55.10
user 53.80
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230044/ft1_filtered_4FGL_J1159.3-2142_daily_bin1475.fits', '/scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits', expMap='/scratch/kocevski/230044/expmap_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.fits', expCube='/scratch/kocevski/230044/ltcube_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230044/Model_4FGL_J1159.3-2142_daily_bin1475.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.3-2142'

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.158e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/230044/ft1_filtered_4FGL_J1159.3-2142_daily_bin1475.fits
Spacecraft file(s): /scratch/kocevski/230044/ft2_4FGL_J1159.3-2142_daily_bin1475.fits
Exposure map: /scratch/kocevski/230044/expmap_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.fits
Exposure cube: /scratch/kocevski/230044/ltcube_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230044/Model_4FGL_J1159.3-2142_daily_bin1475.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) = 5808.311804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    82.033       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.316       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.346       1.0000         .10000E-03   10000.    
    14 'norm      '    .61645       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3293       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.530       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5170       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8815       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .48250       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8791       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.5350       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .54262       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5808.297     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3169 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    246.40       -.35130E-04** at limit **
   2  Prefactor     .10000E-03    52.464       -.39222E-04** at limit **
   3  Prefactor     .10000E-03    24.921       -.53658E-05** at limit **
   4  Prefactor     .10000E-03    17.839        .27333E-05** at limit **
   5  Prefactor     .10000E-03    78.494        .37616E-04** at limit **
   6  norm          .10000E-03    .65677        .15438E-06** at limit **
   7  Prefactor     82.038        23.212       -.49262E-06   -.22565E-04
   8  Prefactor     .10000E-03    18.976       -.12866E-05** at limit **
   9  Prefactor     .10000E-03    1.5210       -.23507E-06** at limit **
  10  Prefactor     37.308        29.390        .79006E-06    .37155E-06
  11  Prefactor     .10000E-03    10.065       -.91598E-06** at limit **
  12  norm          .10000E-03    11.089        .29366E-05** at limit **
  13  Prefactor     29.350        23.126       -.48105E-06   -.10467E-03
  14  norm          .61710        5.3405        .77544E-08   -.14295E-03
  15  Prefactor     4.3294        6.7624        .68799E-05    .16169E-05
  16  Prefactor     .10000E-03    37.764        .23053E-04** at limit **
  17  Prefactor     30.517        43.958       -.40876E-05   -.71117E-04
  18  Prefactor     2.5082        42.475        .15315E-05   -.17303E-04
  19  Prefactor     .10000E-03    43.007       -.43436E-05** at limit **
  20  Prefactor     1.8682        117.42        .13269E-04   -.98138E-05
  21  Prefactor     .48103        .73697        .10438E-06   -.14069E-02
  22  Prefactor     8.8787        3.2185        .10634E-07    .10941E-04
  23  Prefactor     .10000E-03    11.480       -.34129E-05** at limit **
  24  norm          7.5348        2.0371       -.11695E-07   -.85558E-04
  25  Normalizat    .54260        .33414       -.15778E-05   -.97763E-04
  26  Prefactor     1.3161        .17149       -.27699E-06   -.11354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.0376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3081
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.3503
  norm       = 0.617101
  Prefactor  = 4.32936
  Prefactor  = 0.0001
  Prefactor  = 30.5172
  Prefactor  = 2.50818
  Prefactor  = 0.0001
  Prefactor  = 1.86816
  Prefactor  = 0.48103
  Prefactor  = 8.87867
  Prefactor  = 0.0001
  norm       = 7.53484
  Normalizat = 0.542605
  Prefactor  = 1.31609
 **********
 **   18 **HESSE 
 **********

 FCN=   5808.297     FROM HESSE     STATUS=OK           454 CALLS     3623 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    250.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    78.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .99829        .11910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     82.038        23.001        .44347E-04   -1.3894    
   8  Prefactor     .10000E-03    18.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5231        .91791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.308        29.308        .65609E-04   -1.4486    
  11  Prefactor     .10000E-03    10.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.350        24.816        .73958E-04   -1.4624    
  14  norm          .61710        29.067        .27529E-02   -1.5551    
  15  Prefactor     4.3294        6.7333        .19360E-03   -1.5292    
  16  Prefactor     .10000E-03    37.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.517        43.606        .72513E-04   -1.4603    
  18  Prefactor     2.5082        42.519        .25752E-03   -1.5391    
  19  Prefactor     .10000E-03    43.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8682        116.16        .30348E-03   -1.5435    
  21  Prefactor     .48103        10.329        .22398E-02   -1.5569    
  22  Prefactor     8.8787        3.2962        .80061E-04   -1.5112    
  23  Prefactor     .10000E-03    11.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.5348        2.0351        .54462E-04   -1.5159    
  25  Normalizat    .54260        .33662        .52082E-03   -1.1048    
  26  Prefactor     1.3161        .17889        .18575E-03   -.82830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61673e-09
Minuit parameter uncertainties:
  1  0.0017871
  2  1.03124e-05
  3  3.79619e-06
  4  8.94957e-06
  5  1.4903e-05
  6  4.17392e-06
  7  23.0032
  8  7.09124e-06
  9  3.19452e-06
  10  29.3193
  11  1.24325e-05
  12  6.40272e-07
  13  24.8245
  14  8.4742
  15  6.7345
  16  2.05905e-05
  17  43.6513
  18  20.6707
  19  0.000100684
  20  29.522
  21  4.45853
  22  3.2963
  23  1.32153e-05
  24  2.03508
  25  0.337897
  26  0.178971
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  6.171e-01  8.474e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.316e+00  1.790e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  5.426e-01  3.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230044/likelihoodResults_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.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) = 5808.29454417
delta logL = 0.00202930698106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5808.29446917
delta logL = 0.00210430733569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61721       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5773       1.0000          .0000       5.0000    
     3 'Normalizat'    .54111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3164       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5808.294     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      229 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64081        47.475        .75409E-01    .40924E-03
   2  alpha         2.5799        3.0729        .41177        .31407E-04
   3  Normalizat    .54098        .29236E-01    .11760        .29275E-03
   4  Prefactor     1.3164        .15728E-01    .32330E-01    .31927E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.640806
  alpha      = 2.5799
  Normalizat = 0.540978
  Prefactor  = 1.31637
 **********
 **   18 **HESSE 
 **********

 FCN=   5808.294     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64081        40.847        .25151E-02   -1.5548    
   2  alpha         2.5799        3.6677        .67219E-01    .31965E-01
   3  Normalizat    .54098        .32362        .52155E-03   -1.1055    
   4  Prefactor     1.3164        .17528        .18573E-03   -.82822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68105e-10
Minuit parameter uncertainties:
  1  10.2388
  2  5.11933
  3  0.324755
  4  0.175354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230044': 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) = 5808.29445898
delta logL = 0.00211449714334

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  6.408e-01  1.024e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.580e+00  5.119e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.316e+00  1.754e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  5.410e-01  3.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 179.843 -21.704

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/230044/cmap_HighResolution_621648001_621907201_4FGL_J1159.3-2142_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-05', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-04 19:18:33.807041', job_id='230044', GAL2='1.32', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1630808313.81', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.11e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1475' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:18:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 230044: <4FGL_J1159.3-2142_daily_bin1475> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1475> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:47 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:05:49 2021
Terminated at Sat Sep  4 19:18:36 2021
Results reported at Sat Sep  4 19:18:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1475 179.843 -21.7038 621648001 621907201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.3-2142 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            769 sec.

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

