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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1481
RA = 179.843, Dec = -21.7038
tmin = 623203201, tmax = 623462401
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='230056', job_status='RUN', time_executed='2021-09-04 19:09:36.855132', time_epoch_executed='1630807776.86' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230056/ft1_4FGL_J1159.3-2142_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230056/ft1_4FGL_J1159.3-2142_daily_bin1481.fits outfile=/scratch/kocevski/230056/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1481.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.89
user 2.68
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.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/230056/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/230056/ft1_filtered_4FGL_J1159.3-2142_daily_bin1481.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230056/ft1_filtered_4FGL_J1159.3-2142_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/230056/ltcube_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.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/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.fits
.....................!
real 12.60
user 12.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230056/ft1_filtered_4FGL_J1159.3-2142_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/230056/ltcube_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.fits outfile=/scratch/kocevski/230056/expmap_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.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/230056/ltcube_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.fits
.....................!
real 190.66
user 185.11
sys 5.15

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/230056/ft1_filtered_4FGL_J1159.3-2142_daily_bin1481.fits scfile=/scratch/kocevski/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.fits outfile=/scratch/kocevski/230056/cmap_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.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/230056/ft1_filtered_4FGL_J1159.3-2142_daily_bin1481.fits scfile=/scratch/kocevski/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.fits outfile=/scratch/kocevski/230056/cmap_HighResolution_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230056/ft1_filtered_4FGL_J1159.3-2142_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230056/Model_4FGL_J1159.3-2142_daily_bin1481.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/230056/ft1_filtered_4FGL_J1159.3-2142_daily_bin1481.fits......................!
real 17.99
user 16.61
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230056/ft1_filtered_4FGL_J1159.3-2142_daily_bin1481.fits', '/scratch/kocevski/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.fits', expMap='/scratch/kocevski/230056/expmap_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.fits', expCube='/scratch/kocevski/230056/ltcube_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230056/Model_4FGL_J1159.3-2142_daily_bin1481.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/230056/ft1_filtered_4FGL_J1159.3-2142_daily_bin1481.fits
Spacecraft file(s): /scratch/kocevski/230056/ft2_4FGL_J1159.3-2142_daily_bin1481.fits
Exposure map: /scratch/kocevski/230056/expmap_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.fits
Exposure cube: /scratch/kocevski/230056/ltcube_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230056/Model_4FGL_J1159.3-2142_daily_bin1481.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) = 478.469987963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    58.295       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4047       1.0000         .10000E-03   10000.    
     7 'Prefactor '    91.822       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.268       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.759       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50297E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86191       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=   478.1060     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     4751 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    90.211       -.41202E-04** at limit **
   2  Prefactor     58.296        192.67        .19407E-05    .19261E-04
   3  Prefactor     .10000E-03    50.909       -.22086E-04** at limit **
   4  Prefactor     .10000E-03    20.951        .60338E-06** at limit **
   5  Prefactor     .10000E-03    78.553       -.31907E-04** at limit **
   6  norm          3.4046        3.4002       -.50553E-07    .10593E-03
   7  Prefactor     91.819        47.663       -.11020E-05    .19851E-05
   8  Prefactor     .10000E-03    211.50        .37469E-04** at limit **
   9  Prefactor     .10000E-03    18.964        .19846E-06** at limit **
  10  Prefactor     57.268        146.57        .26223E-06    .56918E-06
  11  Prefactor     .10000E-03    120.85        .22647E-04** at limit **
  12  norm          .10000E-03    116.79        .12654E-04** at limit **
  13  Prefactor     .10000E-03    210.76        .39431E-04** at limit **
  14  norm          .10000E-03    62.830        .36347E-04** at limit **
  15  Prefactor     56.493        841.60       -.34995E-03    .19895E-04
  16  Prefactor     .10317E-03    5038.5       -.44196E-02** at limit **
  17  Prefactor    10000.0        6305.4        .16302E-02** at limit **
  18  Prefactor    10000.0        6254.4        .16122E-02** at limit **
  19  Prefactor    10000.0        7413.0        .17882E-02** at limit **
  20  Prefactor    10000.0        7212.3        .17705E-02** at limit **
  21  Prefactor     10000.        7520.9        .17972E-02** at limit **
  22  Prefactor     10000.        7932.5        .18247E-02** at limit **
  23  Prefactor    10000.0        9762.5        .18997E-02** at limit **
  24  norm          .10000E-03    52.968        .16503E-04** at limit **
  25  Normalizat    .10000E-01    .52737        .69115E-05** at limit **
  26  Prefactor     .86188        .29811        .81718E-05   -.24630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 58.2963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.40458
  Prefactor  = 91.8186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.268
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 56.493
  Prefactor  = 0.000103171
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.861882
 **********
 **   18 **HESSE 
 **********

 FCN=   478.1060     FROM HESSE     STATUS=OK           438 CALLS     5189 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    90.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     58.296        192.43        .52545E-04   -1.4179    
   3  Prefactor     .10000E-03    50.916        .15256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.975        .97808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    78.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4046        3.4002        .38077E-04   -1.5339    
   7  Prefactor     91.819        47.571        .41937E-04   -1.3789    
   8  Prefactor     .10000E-03    211.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.968        .93063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57.268        146.87        .53011E-04   -1.4193    
  11  Prefactor     .10000E-03    120.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    116.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    210.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    62.842        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.493        845.95        .26624E-03   -1.4203    
  16  Prefactor     .10317E-03    5034.3        .18543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        6306.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        6254.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        7412.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        7212.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10000.        7521.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10000.        7932.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        9762.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    52.968        .15563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .56921        .89605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .86188        .28463        .19187E-03   -.97486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74882e-10
Minuit parameter uncertainties:
  1  0.000128292
  2  194.542
  3  3.90283e-05
  4  6.38021e-05
  5  1.55172e-05
  6  3.40037
  7  47.591
  8  0.000193246
  9  0.000158104
  10  147.816
  11  0.00026027
  12  4.94913e-05
  13  0.000696046
  14  0.000230999
  15  444.974
  16  1.0893
  17  0.0188832
  18  0.00223107
  19  0.00223883
  20  0.000514042
  21  1.66014e-05
  22  8.6129e-05
  23  0.0122229
  24  4.73406e-06
  25  1.67444e-05
  26  0.285119
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  2.310e-04  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:  8.619e-01  2.851e-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:  1.000e-02  1.674e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 2.97e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230056/likelihoodResults_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.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) = 478.106070036
delta logL = -7.52088335503e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 478.105995438
delta logL = -6.10897529896e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3823       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86203       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=   478.1060     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      232 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    39.018        .90712E-02** at limit **
   2  alpha         4.3824        3.6249        .50000       -.24293E-07
   3  Normalizat    .10000E-01    .42829        .23230    ** at limit **
   4  Prefactor     .86188        .27034        .44519E-01   -.68112E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  alpha      = 4.38243
  Normalizat = 0.01
  Prefactor  = 0.861881
 **********
 **   18 **HESSE 
 **********

 FCN=   478.1060     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    40.146        .26907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.3824        1.3843        .50000        .85257    
   3  Normalizat    .10000E-01    .46356        .89606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .86188        .25069        .19187E-03   -.97486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91733e-10
Minuit parameter uncertainties:
  1  0.00153895
  2  1.64513
  3  1.17643e-05
  4  0.251026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230056': 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) = 478.105995257
delta logL = -4.29851183981e-07

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.539e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  4.382e+00  1.645e+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:  8.619e-01  2.510e-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:  1.000e-02  1.176e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/230056/cmap_HighResolution_623203201_623462401_4FGL_J1159.3-2142_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-03', job_status='DONE', photon_flux_upper_limit='2.97e-06', time_completed='2021-09-04 19:16:24.545240', job_id='230056', GAL2='0.86', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630808184.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-4.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1481' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:16:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 230056: <4FGL_J1159.3-2142_daily_bin1481> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1481> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:48 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:50 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:50 2021
Terminated at Sat Sep  4 19:16:25 2021
Results reported at Sat Sep  4 19:16:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1481 179.843 -21.7038 623203201 623462401 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 :                                   367.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             178.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            637 sec.

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

