/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 226 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1780
RA = 179.843, Dec = -21.7038
tmin = 700704001, tmax = 700963201
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='61252', job_status='RUN', time_executed='2023-03-20 00:49:10.100108', time_epoch_executed='1679298550.1' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61252

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61252/ft1_4FGL_J1159.3-2142_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61252/ft1_4FGL_J1159.3-2142_daily_bin1780.fits outfile=/scratch/kocevski/61252/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1780.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=700704001.0 tmax=700963201.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.06
user 3.85
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.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/61252/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/61252/ft1_filtered_4FGL_J1159.3-2142_daily_bin1780.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.48
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 417

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61252/ft1_filtered_4FGL_J1159.3-2142_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/61252/ltcube_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.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/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.fits
.....................!
real 12.07
user 11.77
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61252/ft1_filtered_4FGL_J1159.3-2142_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/61252/ltcube_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.fits outfile=/scratch/kocevski/61252/expmap_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.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/61252/ltcube_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.fits
.....................!
real 189.34
user 184.96
sys 4.05

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/61252/ft1_filtered_4FGL_J1159.3-2142_daily_bin1780.fits scfile=/scratch/kocevski/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.fits outfile=/scratch/kocevski/61252/cmap_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61252/ft1_filtered_4FGL_J1159.3-2142_daily_bin1780.fits scfile=/scratch/kocevski/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.fits outfile=/scratch/kocevski/61252/cmap_HighResolution_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/61252/ft1_filtered_4FGL_J1159.3-2142_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61252/Model_4FGL_J1159.3-2142_daily_bin1780.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/61252/ft1_filtered_4FGL_J1159.3-2142_daily_bin1780.fits.....................!
real 42.80
user 41.60
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/61252/ft1_filtered_4FGL_J1159.3-2142_daily_bin1780.fits', '/scratch/kocevski/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.fits', expMap='/scratch/kocevski/61252/expmap_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.fits', expCube='/scratch/kocevski/61252/ltcube_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/61252/Model_4FGL_J1159.3-2142_daily_bin1780.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  0.000e+00  1.000e+06 ( 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 -5.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/61252/ft1_filtered_4FGL_J1159.3-2142_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/61252/ft2_4FGL_J1159.3-2142_daily_bin1780.fits
Exposure map: /scratch/kocevski/61252/expmap_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.fits
Exposure cube: /scratch/kocevski/61252/ltcube_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/61252/Model_4FGL_J1159.3-2142_daily_bin1780.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) = 4323.11830382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24493E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    25.894       1.0000          .0000       .10000E+07
     3 'Prefactor '    15.473       1.0000          .0000       .10000E+07
     4 'norm      '    .22547       1.0000          .0000       .10000E+07
     5 'Prefactor '    90.169       1.0000          .0000       .10000E+07
     6 'Prefactor '    24.040       1.0000          .0000       .10000E+07
     7 'Prefactor '    29.875       1.0000          .0000       .10000E+07
     8 'Prefactor '    32.347       1.0000          .0000       .10000E+07
     9 'norm      '    .22776E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11490E-02   1.0000          .0000       .10000E+07
    11 'norm      '    3.6182       1.0000          .0000       .10000E+07
    12 'Prefactor '    5.7762       1.0000          .0000       .10000E+07
    13 'Prefactor '    .74150E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .96395E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10391E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22604       1.0000          .0000       .10000E+07
    17 'Prefactor '    .79352E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.2568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4004       1.0000          .0000       .10000E+07
    20 'norm      '    .36738       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79832       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4323.066     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1742 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61062E-09    10.457        .16505E-05** at limit **
   2  Prefactor     25.726        5.7224       -.78513E-07    .14409    
   3  Prefactor     15.377        1.3876        .27075E-07    .59932E-02
   4  norm          .22508        .59150        .64225E-07** at limit **
   5  Prefactor     90.095        1.1835        .16069E-07    .50022E-02
   6  Prefactor     24.091        1.0356       -.15849E-08   -.74821E-03
   7  Prefactor     29.673        9.8621       -.67624E-07   -.91423E-03
   8  Prefactor     32.466        1.2480       -.13159E-07    .41707E-02
   9  norm          .61617E-08    7.5018       -.64557E-06** at limit **
  10  Prefactor      .0000        6.7868       -.24360E-06** at limit **
  11  norm          3.6200        3.7150        .27142E-06    .69550E-03
  12  Prefactor     5.7420        5.5871       -.24195E-06    .88760E-04
  13  Prefactor     .24170E-06    10.974        .16103E-05** at limit **
  14  Prefactor     .49016E-07    12.492        .28923E-06** at limit **
  15  Prefactor     .30836E-06    27.835        .11522E-05** at limit **
  16  Prefactor     .31641E-08    3.4566        .20203E-06** at limit **
  17  Prefactor     .37803E-07    9.8159        .15429E-06** at limit **
  18  Prefactor     6.2545        3.1677       -.14671E-05    .50368E-04
  19  Prefactor     1.4627        9.1959        .40957E-06   -.79422E-05
  20  norm          .36634        .94516        .35942E-07    .41773E-03
  21  Normalizat    1.0933        .31707       -.66981E-05    .13483E-05
  22  Prefactor     .79836        .17047        .11795E-04    .44393E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10623e-10
  Prefactor  = 25.726
  Prefactor  = 15.3771
  norm       = 0.225079
  Prefactor  = 90.0951
  Prefactor  = 24.0907
  Prefactor  = 29.6734
  Prefactor  = 32.4655
  norm       = 6.16174e-09
  Prefactor  = 0
  norm       = 3.62004
  Prefactor  = 5.74198
  Prefactor  = 2.41696e-07
  Prefactor  = 4.90163e-08
  Prefactor  = 3.08364e-07
  Prefactor  = 3.16414e-09
  Prefactor  = 3.78031e-08
  Prefactor  = 6.25452
  Prefactor  = 1.46274
  norm       = 0.366338
  Normalizat = 1.09334
  Prefactor  = 0.798361
 **********
 **   18 **HESSE 
 **********

 FCN=   4323.066     FROM HESSE     STATUS=OK           394 CALLS     2136 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61062E-09    21.601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.726        56.017        .19655E-03   -1.5607    
   3  Prefactor     15.377        17.667        .25436E-03   -1.5630    
   4  norm          .22508        .68625        .20277E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     90.095        19.930        .10532E-03   -1.5518    
   6  Prefactor     24.091        26.886        .20400E-03   -1.5610    
   7  Prefactor     29.673        9.8769        .18298E-03   -1.5599    
   8  Prefactor     32.466        25.783        .17585E-03   -1.5594    
   9  norm          .61617E-08    7.5050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        6.7842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6200        3.7335        .53091E-03   -1.5670    
  12  Prefactor     5.7420        5.5961        .41766E-03   -1.5660    
  13  Prefactor     .24170E-06    21.119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .49016E-07    12.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .30836E-06    27.999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31641E-08    70.730        .11330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .37803E-07    10.194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2545        3.1889        .40120E-02   -1.5208    
  19  Prefactor     1.4627        9.2643        .91657E-03   -1.5684    
  20  norm          .36634        .99352        .23156E-02   -1.5696    
  21  Normalizat    1.0933        .27696        .71341E-01   -.89966    
  22  Prefactor     .79836        .14366        .43695E-01   -.99789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34692e-06
Minuit parameter uncertainties:
  1  0.000233546
  2  56.0185
  3  17.6674
  4  0.68625
  5  19.9305
  6  26.8858
  7  9.87693
  8  25.7833
  9  0.000430212
  10  2.0768e-05
  11  3.73349
  12  5.59613
  13  0.00451857
  14  0.00156859
  15  0.00587653
  16  0.000946665
  17  0.00124114
  18  3.189
  19  7.36241
  20  0.99352
  21  0.277324
  22  0.143731
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.620e+00  3.733e+00  0.000e+00  1.000e+06 ( 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 -5.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:  7.984e-01  1.437e-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.093e+00  2.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 3.28e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/61252/likelihoodResults_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.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) = 4323.065936
delta logL = 0.000115411309707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4323.06589099
delta logL = 0.000160420137945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5813       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4023       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79852       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=   4323.066     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      223 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5773        135.12        .53375E-03    .13910E-02
   2  alpha         2.4005        2.7720        .41191        .27355E-04
   3  Normalizat    1.0928        .14022        .71356E-01   -.96145E-04
   4  Prefactor     .79853        .57223E-01    .43698E-01   -.21865E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.57733
  alpha      = 2.40054
  Normalizat = 1.09282
  Prefactor  = 0.798533
 **********
 **   18 **HESSE 
 **********

 FCN=   4323.066     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5773        4.5349        .12410E-04   -1.5670    
   2  alpha         2.4005        .98724        .17436E-01   -.39794E-01
   3  Normalizat    1.0928        .31272        .31575E-03   -.89983    
   4  Prefactor     .79853        .16814        .19499E-03   -.99782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41798e-11
Minuit parameter uncertainties:
  1  4.53489
  2  1.01493
  3  0.313247
  4  0.16825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61252': 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) = 4323.06588646
delta logL = 0.000164951006809

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.577e+00  4.535e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  2.401e+00  1.015e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00 -5.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:  7.985e-01  1.682e-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.093e+00  3.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.40 +/- 1.01
Photon Flux (Free Index): 3.32e-08 +/- 3.99e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.23e-05

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/61252/cmap_HighResolution_700704001_700963201_4FGL_J1159.3-2142_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-05', comment='SUCCESS', photon_flux='3.28e-08', energy_flux2='1.13e-05', photon_flux_error='3.38e-08', dlogl='1.65e-04', energy_flux='1.13e-05', photon_flux2='3.32e-08', job_status='DONE', time_completed='2023-03-20 00:57:41.216631', photon_index_error2='1.01', photon_index2='2.40', ts='1.80', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.23e-05', EG='1.09', time_epoch_completed='1679299061.22', return_code='0', job_id='61252', GAL2='0.80', EG2='1.09', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='3.99e-08', ts2='1.80', photon_index='2.38' WHERE bin_id='1780' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:57:41 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 61252: <4FGL_J1159.3-2142_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:45:17 2023
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:45:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:45:19 2023
Terminated at Mon Mar 20 00:57:41 2023
Results reported at Mon Mar 20 00:57:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1780 179.843 -21.7038 700704001 700963201 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 :                                   510.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

