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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1020
RA = 176.811, Dec = -26.4649
tmin = 503712001, tmax = 503971201
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='58307', job_status='RUN', time_executed='2021-09-04 10:43:58.093111', time_epoch_executed='1630777438.09' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58307/ft1_4FGL_J1147.2-2627_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58307/ft1_4FGL_J1147.2-2627_daily_bin1020.fits outfile=/scratch/kocevski/58307/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1020.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=503712001.0 tmax=503971201.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.62
user 5.33
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.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/58307/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/58307/ft1_filtered_4FGL_J1147.2-2627_daily_bin1020.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58307/ft1_filtered_4FGL_J1147.2-2627_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/58307/ltcube_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.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/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.fits
.....................!
real 12.20
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58307/ft1_filtered_4FGL_J1147.2-2627_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/58307/ltcube_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.fits outfile=/scratch/kocevski/58307/expmap_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.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/58307/ltcube_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.fits
.....................!
real 190.42
user 185.41
sys 4.16

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/58307/ft1_filtered_4FGL_J1147.2-2627_daily_bin1020.fits scfile=/scratch/kocevski/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.fits outfile=/scratch/kocevski/58307/cmap_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.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 0.84
user 0.41
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58307/ft1_filtered_4FGL_J1147.2-2627_daily_bin1020.fits scfile=/scratch/kocevski/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.fits outfile=/scratch/kocevski/58307/cmap_HighResolution_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.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.90
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58307/ft1_filtered_4FGL_J1147.2-2627_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58307/Model_4FGL_J1147.2-2627_daily_bin1020.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/58307/ft1_filtered_4FGL_J1147.2-2627_daily_bin1020.fits.....................!
real 66.46
user 63.56
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/58307/ft1_filtered_4FGL_J1147.2-2627_daily_bin1020.fits', '/scratch/kocevski/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.fits', expMap='/scratch/kocevski/58307/expmap_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.fits', expCube='/scratch/kocevski/58307/ltcube_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/58307/Model_4FGL_J1147.2-2627_daily_bin1020.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/58307/ft1_filtered_4FGL_J1147.2-2627_daily_bin1020.fits
Spacecraft file(s): /scratch/kocevski/58307/ft2_4FGL_J1147.2-2627_daily_bin1020.fits
Exposure map: /scratch/kocevski/58307/expmap_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.fits
Exposure cube: /scratch/kocevski/58307/ltcube_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/58307/Model_4FGL_J1147.2-2627_daily_bin1020.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) = 7468.02975867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3970       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17496E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.814       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32651E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3266       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8098       1.0000         .10000E-03   10000.    
    10 'norm      '    .78520       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9695       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2174       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0197       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3043       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97827       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84113       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=   7468.026     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2559 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3958        6.3761       -.10864E-05    .16251E-03
   2  Prefactor     .10000E-03    26.971        .56631E-06** at limit **
   3  Prefactor     .10001E-03    175.72        .17636E-05** at limit **
   4  Prefactor     26.800        30.852       -.17156E-05   -.46448E-03
   5  Prefactor     .10001E-03    69.747        .18722E-04** at limit **
   6  Prefactor     8.3191        26.933       -.50351E-06   -.89038E-04
   7  Prefactor     .10000E-03    11.468        .24160E-06** at limit **
   8  norm          .10000E-03    .34684        .15439E-06** at limit **
   9  Prefactor     1.8106        7.0637       -.96294E-07    .92256E-04
  10  norm          .78533        4.7250       -.77475E-06    .22606E-03
  11  Prefactor     4.9703        4.0423       -.95631E-06    .20324E-03
  12  Prefactor     .10000E-03    6.9512       -.10179E-07** at limit **
  13  norm          .10000E-03    23.669       -.11570E-06** at limit **
  14  Prefactor     .10000E-03    3.9273        .73379E-07** at limit **
  15  norm          5.2172        3.1906       -.38089E-07   -.26793E-03
  16  Prefactor     7.0208        4.6086        .84140E-07   -.32953E-03
  17  Prefactor     .10000E-03    10.564       -.35764E-07** at limit **
  18  Prefactor     8.3072        17.895       -.20115E-06   -.49407E-04
  19  Prefactor     15.424        12.403       -.20795E-06   -.18433E-03
  20  Prefactor     .10000E-03    12.907       -.28560E-07** at limit **
  21  Prefactor     .10000E-03    5.6519        .14883E-06** at limit **
  22  Normalizat    .97806        .18795        .92224E-06   -.90007E-03
  23  Prefactor     .84115        .93832E-01   -.96740E-06   -.17278E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.39583
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 26.7999
  Prefactor  = 0.000100011
  Prefactor  = 8.31907
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.81062
  norm       = 0.785329
  Prefactor  = 4.9703
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.21724
  Prefactor  = 7.02079
  Prefactor  = 0.0001
  Prefactor  = 8.3072
  Prefactor  = 15.4237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.978062
  Prefactor  = 0.841146
 **********
 **   18 **HESSE 
 **********

 FCN=   7468.026     FROM HESSE     STATUS=OK           366 CALLS     2925 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3958        6.3903        .79346E-03   -1.5202    
   2  Prefactor     .10000E-03    27.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    176.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.800        30.800        .77364E-04   -1.4672    
   5  Prefactor     .10001E-03    68.605        .41723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3191        26.860        .13893E-03   -1.5131    
   7  Prefactor     .10000E-03    11.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .52034        .98492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8106        7.0544        .31058E-03   -1.5439    
  10  norm          .78533        4.8167        .36419E-03   -1.5531    
  11  Prefactor     4.9703        4.0460        .75210E-03   -1.5262    
  12  Prefactor     .10000E-03    6.9528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    24.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9370        .16717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2172        3.1877        .11655E-03   -1.5251    
  16  Prefactor     7.0208        4.5989        .13857E-03   -1.5178    
  17  Prefactor     .10000E-03    10.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3072        17.845        .13912E-03   -1.5131    
  19  Prefactor     15.424        12.405        .10199E-03   -1.4922    
  20  Prefactor     .10000E-03    12.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97806        .21844        .30387E-03   -.93769    
  23  Prefactor     .84115        .11202        .16735E-03   -.98229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61029e-09
Minuit parameter uncertainties:
  1  6.39094
  2  0.000403155
  3  0.00250388
  4  30.818
  5  0.00170036
  6  26.8994
  7  0.000245323
  8  4.47022e-06
  9  7.05759
  10  3.89005
  11  4.04626
  12  6.44264e-06
  13  0.000148096
  14  1.29852e-05
  15  3.18777
  16  4.59918
  17  0.000102157
  18  17.8562
  19  12.407
  20  0.000109217
  21  2.42992e-05
  22  0.218636
  23  0.112048
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  4.970e+00  4.046e+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:  8.411e-01  1.120e-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:  9.781e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 176.811 -26.465
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 9.12e-06

TS (Fixed Index): 2.71
Ra Dec: 176.811 -26.465
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58307/likelihoodResults_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.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) = 7467.92547959
delta logL = 0.100357350293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7467.90913886
delta logL = 0.116698078436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7758       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2490       1.0000          .0000       10.000    
     3 'Normalizat'    .98895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83770       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=   7467.909     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      251 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7774        4.8572        .83331E-03    .18015E-03
   2  Index         2.2487        .63214        .95343E-02    .56186E-05
   3  Normalizat    .98878        .21478        .30242E-03   -.13157E-05
   4  Prefactor     .83776        .11050        .16765E-03    .47469E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.77738
  Index      = 2.24867
  Normalizat = 0.988785
  Prefactor  = 0.837756
 **********
 **   18 **HESSE 
 **********

 FCN=   7467.909     FROM HESSE     STATUS=OK            27 CALLS      278 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7774        4.8271        .16666E-03   -1.5227    
   2  Index         2.2487        .62822        .38137E-03   -.58268    
   3  Normalizat    .98878        .21494        .12097E-04   -.93407    
   4  Prefactor     .83776        .11058        .67059E-05   -.98351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38632e-13
Minuit parameter uncertainties:
  1  4.82742
  2  0.630612
  3  0.21513
  4  0.110611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58307': 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) = 7467.90913836
delta logL = 0.11669858117

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  5.777e+00  4.827e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.249e+00  6.306e-01  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:  8.378e-01  1.106e-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:  9.888e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 176.811 -26.465
Photon Index (Free Index): 2.25 +/- 0.63
Photon Flux (Free Index): 3.30e-08 +/- 3.38e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/58307/cmap_HighResolution_503712001_503971201_4FGL_J1147.2-2627_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='1.36e-05', photon_flux_error='3.36e-08', dlogl='1.17e-01', energy_flux='1.12e-05', photon_flux2='3.30e-08', job_status='DONE', time_completed='2021-09-04 10:57:14.217620', photon_index_error2='0.63', photon_index2='2.25', ts='2.71', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.30e-05', EG='0.98', time_epoch_completed='1630778234.22', return_code='0', job_id='58307', GAL2='0.84', EG2='0.99', return_code2='0', energy_flux_error='9.12e-06', photon_flux_error2='3.38e-08', ts2='2.94', photon_index='2.56' WHERE bin_id='1020' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:57:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 58307: <4FGL_J1147.2-2627_daily_bin1020> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1020> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 10:41:42 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:41:44 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:41:44 2021
Terminated at Sat Sep  4 10:57:14 2021
Results reported at Sat Sep  4 10:57:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1020 176.811 -26.4649 503712001 503971201 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 :                                   788.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

