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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1090
RA = 176.811, Dec = -26.4649
tmin = 521856001, tmax = 522115201
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='59779', job_status='RUN', time_executed='2021-09-04 10:47:24.004207', time_epoch_executed='1630777644.0' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59779

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59779/ft1_4FGL_J1147.2-2627_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59779/ft1_4FGL_J1147.2-2627_daily_bin1090.fits outfile=/scratch/kocevski/59779/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1090.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=521856001.0 tmax=522115201.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 3.93
user 3.51
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.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/59779/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/59779/ft1_filtered_4FGL_J1147.2-2627_daily_bin1090.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 2.27
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59779/ft1_filtered_4FGL_J1147.2-2627_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/59779/ltcube_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.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/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits
.....................!
real 12.22
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59779/ft1_filtered_4FGL_J1147.2-2627_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/59779/ltcube_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.fits outfile=/scratch/kocevski/59779/expmap_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.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/59779/ltcube_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.fits
.....................!
real 196.99
user 187.76
sys 4.65

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

Setting source of interest to:
4FGL J1147.2-2627 @ 176.811 -26.4649

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/59779/ft1_filtered_4FGL_J1147.2-2627_daily_bin1090.fits scfile=/scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits outfile=/scratch/kocevski/59779/cmap_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.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=176.811 yref=-26.4649 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 1.48
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59779/ft1_filtered_4FGL_J1147.2-2627_daily_bin1090.fits scfile=/scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits outfile=/scratch/kocevski/59779/cmap_HighResolution_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.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=176.811 yref=-26.4649 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.77
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59779/ft1_filtered_4FGL_J1147.2-2627_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59779/Model_4FGL_J1147.2-2627_daily_bin1090.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/59779/ft1_filtered_4FGL_J1147.2-2627_daily_bin1090.fits.....................!
real 76.15
user 69.44
sys 1.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/59779/ft1_filtered_4FGL_J1147.2-2627_daily_bin1090.fits', '/scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits', expMap='/scratch/kocevski/59779/expmap_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.fits', expCube='/scratch/kocevski/59779/ltcube_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/59779/Model_4FGL_J1147.2-2627_daily_bin1090.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1147.2-2627'

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.341e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.563e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/59779/ft1_filtered_4FGL_J1147.2-2627_daily_bin1090.fits
Spacecraft file(s): /scratch/kocevski/59779/ft2_4FGL_J1147.2-2627_daily_bin1090.fits
Exposure map: /scratch/kocevski/59779/expmap_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.fits
Exposure cube: /scratch/kocevski/59779/ltcube_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/59779/Model_4FGL_J1147.2-2627_daily_bin1090.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) = 8373.30688924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.486       1.0000         .10000E-03   10000.    
     3 'Prefactor '    164.43       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9901       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.531       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1042       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8141       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.207       1.0000         .10000E-03   10000.    
    15 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .40058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2740       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0476       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92383       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8373.282     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2556 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22377        6.2990       -.49694E-05    .44238E-04
   2  Prefactor     10.527        41.497        .70537E-05    .98050E-05
   3  Prefactor     164.30        135.03       -.59692E-05   -.12414E-04
   4  Prefactor     .10000E-03    18.716       -.90173E-07** at limit **
   5  Prefactor     .10000E-03    5.3581        .14756E-06** at limit **
   6  Prefactor     6.9967        92.891        .22742E-05   -.51298E-05
   7  Prefactor     14.527        19.798        .99050E-08    .32558E-04
   8  norm          4.1046        1.4800       -.42753E-07   -.49230E-03
   9  Prefactor     .10000E-03    2.3623       -.74187E-08** at limit **
  10  norm          2.8132        4.4157       -.25188E-05   -.18016E-03
  11  Prefactor     .94279        3.4699       -.28547E-06    .13717E-03
  12  Prefactor     .10000E-03    17.052       -.93503E-07** at limit **
  13  norm          .10000E-03    13.267        .52667E-07** at limit **
  14  Prefactor     12.215        10.508       -.12312E-06   -.65928E-04
  15  norm          .10000E-03    2.7042        .13945E-06** at limit **
  16  Prefactor     .10000E-03    2.0183       -.31780E-06** at limit **
  17  Prefactor     .10000E-03    22.150        .14965E-06** at limit **
  18  Prefactor     .10000E-03    110.21       -.54105E-04** at limit **
  19  Prefactor     .10000E-03    6.5330       -.28676E-07** at limit **
  20  Prefactor     .10000E-03    25.520        .22568E-06** at limit **
  21  Prefactor     1.2728        36.879       -.17180E-05   -.56136E-06
  22  Normalizat    1.0471        .19856       -.54669E-06   -.35725E-03
  23  Prefactor     .92409        .97003E-01   -.59366E-07   -.10107E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.223767
  Prefactor  = 10.5274
  Prefactor  = 164.298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.99669
  Prefactor  = 14.5274
  norm       = 4.10457
  Prefactor  = 0.0001
  norm       = 2.81324
  Prefactor  = 0.94279
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2153
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.27284
  Normalizat = 1.04709
  Prefactor  = 0.924086
 **********
 **   18 **HESSE 
 **********

 FCN=   8373.282     FROM HESSE     STATUS=OK           376 CALLS     2932 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22377        57.386        .39754E-02   -1.5613    
   2  Prefactor     10.527        41.503        .12373E-03   -1.5059    
   3  Prefactor     164.30        135.56        .15727E-03   -1.3137    
   4  Prefactor     .10000E-03    18.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.9967        92.462        .15174E-03   -1.5179    
   7  Prefactor     14.527        19.804        .10507E-03   -1.4945    
   8  norm          4.1046        1.4788        .30858E-03   -1.5303    
   9  Prefactor     .10000E-03    2.3652        .13735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8132        4.4256        .11746E-02   -1.5372    
  11  Prefactor     .94279        3.4819        .31118E-03   -1.5514    
  12  Prefactor     .10000E-03    17.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.215        10.464        .11466E-03   -1.5009    
  15  norm          .10000E-03    2.7430        .29224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0358        .24740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    107.50        .63055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2728        37.206        .39385E-03   -1.5482    
  22  Normalizat    1.0471        .24007        .31775E-03   -.91469    
  23  Prefactor     .92409        .11722        .17130E-03   -.95304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51676e-09
Minuit parameter uncertainties:
  1  7.17224
  2  41.617
  3  135.817
  4  0.000107722
  5  2.42317e-05
  6  50.966
  7  19.8129
  8  1.47885
  9  1.86185e-06
  10  4.42608
  11  3.48269
  12  0.000179657
  13  7.51383e-05
  14  10.4656
  15  2.10915e-05
  16  0.000191614
  17  5.21518e-05
  18  0.000391319
  19  5.85984e-06
  20  0.000155245
  21  13.7722
  22  0.240321
  23  0.117253
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  9.428e-01  3.483e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.563e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  9.241e-01  1.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.047e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 176.811 -26.465
Photon Flux Upper Limit: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59779/likelihoodResults_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.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) = 8373.20941236
delta logL = 0.0724645325936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8373.20185791
delta logL = 0.0800189881447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8494       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9835       1.0000          .0000       10.000    
     3 'Normalizat'    1.0512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8373.202     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      324 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8573        4.1596        .27185E-03   -.47173E-04
   2  Index         1.9862        1.1229        .17864E-01   -.11749E-03
   3  Normalizat    1.0513        .22425        .31717E-03   -.13700E-03
   4  Prefactor     .92138        .11503        .17151E-03   -.28802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85729
  Index      = 1.9862
  Normalizat = 1.05126
  Prefactor  = 0.921376
 **********
 **   18 **HESSE 
 **********

 FCN=   8373.202     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8573        4.1786        .10874E-04   -1.5435    
   2  Index         1.9862        1.1294        .35729E-02   -.64696    
   3  Normalizat    1.0513        .22444        .12687E-04   -.91332    
   4  Prefactor     .92138        .11512        .34302E-04   -.95398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15251e-11
Minuit parameter uncertainties:
  1  4.17929
  2  1.14501
  3  0.224644
  4  0.115149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59779': 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) = 8373.20185366
delta logL = 0.0800232297042

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.857e+00  4.179e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  1.986e+00  1.145e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  9.214e-01  1.151e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.051e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 176.811 -26.465

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/59779/cmap_HighResolution_521856001_522115201_4FGL_J1147.2-2627_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2021-09-04 11:01:37.110955', job_id='59779', GAL2='0.92', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630778497.11', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='8.00e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1090' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:01:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 59779: <4FGL_J1147.2-2627_daily_bin1090> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1090> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:46:17 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:46:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 10:46:19 2021
Terminated at Sat Sep  4 11:01:37 2021
Results reported at Sat Sep  4 11:01:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1090 176.811 -26.4649 521856001 522115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1147.2-2627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

