/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 156 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 = 7258
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1147.2-2627_daily_bin170
RA = 176.811, Dec = -26.4649
tmin = 283392001, tmax = 283651201
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='50289', job_status='RUN', time_executed='2021-09-04 10:29:31.945530', time_epoch_executed='1630776571.95' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50289

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50289/ft1_4FGL_J1147.2-2627_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50289/ft2_4FGL_J1147.2-2627_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50289/ft1_4FGL_J1147.2-2627_daily_bin170.fits outfile=/scratch/kocevski/50289/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin170.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=283392001.0 tmax=283651201.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.79
user 2.56
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50289/ft1_filtered_4FGL_J1147.2-2627_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/50289/ft2_4FGL_J1147.2-2627_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/50289/ltcube_283392001_283651201_4FGL_J1147.2-2627_daily_bin170.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/50289/ft2_4FGL_J1147.2-2627_daily_bin170.fits
.....................!
real 9.31
user 8.96
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50289/ft1_filtered_4FGL_J1147.2-2627_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/50289/ft2_4FGL_J1147.2-2627_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/50289/ltcube_283392001_283651201_4FGL_J1147.2-2627_daily_bin170.fits outfile=/scratch/kocevski/50289/expmap_283392001_283651201_4FGL_J1147.2-2627_daily_bin170.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/50289/ltcube_283392001_283651201_4FGL_J1147.2-2627_daily_bin170.fits
.....................!
real 144.57
user 140.83
sys 3.44

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/50289/ft1_filtered_4FGL_J1147.2-2627_daily_bin170.fits scfile=/scratch/kocevski/50289/ft2_4FGL_J1147.2-2627_daily_bin170.fits outfile=/scratch/kocevski/50289/cmap_283392001_283651201_4FGL_J1147.2-2627_daily_bin170.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.51
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50289/ft1_filtered_4FGL_J1147.2-2627_daily_bin170.fits scfile=/scratch/kocevski/50289/ft2_4FGL_J1147.2-2627_daily_bin170.fits outfile=/scratch/kocevski/50289/cmap_HighResolution_283392001_283651201_4FGL_J1147.2-2627_daily_bin170.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.45
user 0.31
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/50289/ft1_filtered_4FGL_J1147.2-2627_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/50289/ft2_4FGL_J1147.2-2627_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/50289/Model_4FGL_J1147.2-2627_daily_bin170.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/50289/ft1_filtered_4FGL_J1147.2-2627_daily_bin170.fits.....................!
real 61.88
user 60.72
sys 0.97

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83417E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.895       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7793       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1266       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37594E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .90814       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7230       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.7881       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.974       1.0000         .10000E-03   10000.    
    15 'norm      '    .22515       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7110       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13760       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1754       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88110       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=   9481.663     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2598 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86953E-01    2.3042       -.75935E-06   -.59301E-03
   2  Prefactor     .10000E-03    22.773       -.24476E-05** at limit **
   3  Prefactor     .10000E-03    29.100        .10934E-04** at limit **
   4  Prefactor     17.890        24.393        .22634E-06    .78021E-05
   5  Prefactor     4.7776        8.8343       -.27090E-06   -.48416E-06
   6  Prefactor     3.1144        99.678       -.13795E-04   -.84378E-05
   7  Prefactor     .10000E-03    120.37        .32767E-04** at limit **
   8  norm          .90796        .82600        .11980E-06    .38870E-03
   9  Prefactor     .10000E-03    3.1385        .44488E-08** at limit **
  10  norm          13.491        6.7048        .64136E-06   -.10945E-04
  11  Prefactor     2.7231        3.6188       -.34980E-07   -.52169E-04
  12  Prefactor     .10000E-03    17.547        .34107E-06** at limit **
  13  norm          8.7883        11.574       -.10019E-06   -.48783E-05
  14  Prefactor     15.966        14.209       -.29676E-06   -.15761E-04
  15  norm          .22961        1.9932        .80452E-07   -.10495E-03
  16  Prefactor     3.7162        3.3362        .77743E-06   -.20195E-02
  17  Prefactor     .10000E-03    8.4103       -.18241E-07** at limit **
  18  Prefactor     .10000E-03    31.488       -.10010E-04** at limit **
  19  Prefactor     .10000E-03    4.2661       -.23175E-07** at limit **
  20  Prefactor     .10000E-03    60.084       -.17263E-06** at limit **
  21  Prefactor     .10002E-03    11.249       -.85260E-07** at limit **
  22  Normalizat    1.1755        .17999        .10282E-06    .47167E-04
  23  Prefactor     .88103        .89456E-01   -.21027E-06    .68239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0869526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.89
  Prefactor  = 4.77756
  Prefactor  = 3.11444
  Prefactor  = 0.000100001
  norm       = 0.907958
  Prefactor  = 0.0001
  norm       = 13.4915
  Prefactor  = 2.72306
  Prefactor  = 0.0001
  norm       = 8.78834
  Prefactor  = 15.9657
  norm       = 0.229607
  Prefactor  = 3.71617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Normalizat = 1.17555
  Prefactor  = 0.88103
 **********
 **   18 **HESSE 
 **********

 FCN=   9481.663     FROM HESSE     STATUS=OK           394 CALLS     2992 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86953E-01    1.9828        .92365E-01   -1.5649    
   2  Prefactor     .10000E-03    22.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.890        24.368        .94680E-04   -1.4862    
   5  Prefactor     4.7776        8.8221        .18403E-03   -1.5271    
   6  Prefactor     3.1144        99.654        .22929E-03   -1.5355    
   7  Prefactor     .10000E-03    121.99        .42584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .90796        .79097        .80015E-03   -1.5517    
   9  Prefactor     .10000E-03    3.1450        .16846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.491        6.7049        .10905E-03   -1.4973    
  11  Prefactor     2.7231        3.6062        .20354E-03   -1.5378    
  12  Prefactor     .10000E-03    17.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.7883        11.576        .13521E-03   -1.5115    
  14  Prefactor     15.966        16.773        .10021E-03   -1.4909    
  15  norm          .22961        13.623        .21713E-02   -1.5612    
  16  Prefactor     3.7162        4.9450        .10482E-02   -1.5322    
  17  Prefactor     .10000E-03    8.4114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.2688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    61.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    15.437        .90621E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1755        .21676        .30313E-03   -.87362    
  23  Prefactor     .88103        .10648        .17711E-03   -.96807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30833e-08
Minuit parameter uncertainties:
  1  0.829991
  2  1.17996e-05
  3  0.00013033
  4  24.3815
  5  8.82453
  6  35.2982
  7  0.000633363
  8  0.790975
  9  3.81025e-06
  10  6.70524
  11  3.60653
  12  3.06918e-06
  13  11.5789
  14  16.7774
  15  3.5373
  16  4.94552
  17  6.24347e-08
  18  0.000121091
  19  2.53911e-07
  20  2.26752e-06
  21  0.00112924
  22  0.216927
  23  0.106507
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  2.723e+00  3.607e+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.810e-01  1.065e-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.176e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/50289/likelihoodResults_283392001_283651201_4FGL_J1147.2-2627_daily_bin170.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) = 9481.66084181
delta logL = 0.00255145337178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9481.66047628
delta logL = 0.00291698395813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7805       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4544       1.0000          .0000       10.000    
     3 'Normalizat'    1.1790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88000       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.

 FCN=   9481.660     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      221 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7817        44.404        .61009E-02    .49865E-03
   2  Index         2.4535        1.9836        .50000        .67099E-06
   3  Normalizat    1.1790        .29977E-01    .68426E-01    .21495E-04
   4  Prefactor     .87998        .14934E-01    .44750E-01    .12195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78167
  Index      = 2.45355
  Normalizat = 1.17902
  Prefactor  = 0.879977
 **********
 **   18 **HESSE 
 **********

 FCN=   9481.660     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .16E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7817        3.7592        .20955E-03   -1.5374    
   2  Index         2.4535        1.3876        .75228E-02   -.53436    
   3  Normalizat    1.1790        .20969        .30274E-03   -.87254    
   4  Prefactor     .87998        .10626        .17720E-03   -.96844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5684e-14
Minuit parameter uncertainties:
  1  3.7595
  2  1.41285
  3  0.209843
  4  0.106288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50289': 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) = 9481.66047606
delta logL = 0.00291720098903

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  2.782e+00  3.760e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.454e+00  1.413e+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:  8.800e-01  1.063e-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.179e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.91
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/50289/cmap_HighResolution_283392001_283651201_4FGL_J1147.2-2627_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.74e-08', time_completed='2021-09-04 10:41:16.542323', job_id='50289', GAL2='0.88', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630777276.54', return_code2='0', ts='0.91', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.92e-03', ts2='0.92', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='170' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:41:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 50289: <4FGL_J1147.2-2627_daily_bin170> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 10:26:43 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:26:45 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:26:45 2021
Terminated at Sat Sep  4 10:41:17 2021
Results reported at Sat Sep  4 10:41:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin170 176.811 -26.4649 283392001 283651201 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 :                                   703.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

