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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1087
RA = 176.811, Dec = -26.4649
tmin = 521078401, tmax = 521337601
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='59775', job_status='RUN', time_executed='2021-09-04 10:49:51.099688', time_epoch_executed='1630777791.1' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59775

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59775/ft1_4FGL_J1147.2-2627_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59775/ft2_4FGL_J1147.2-2627_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59775/ft1_4FGL_J1147.2-2627_daily_bin1087.fits outfile=/scratch/kocevski/59775/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1087.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=521078401.0 tmax=521337601.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.95
user 4.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59775/ft1_filtered_4FGL_J1147.2-2627_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/59775/ft2_4FGL_J1147.2-2627_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/59775/ltcube_521078401_521337601_4FGL_J1147.2-2627_daily_bin1087.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/59775/ft2_4FGL_J1147.2-2627_daily_bin1087.fits
.....................!
real 12.70
user 11.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59775/ft1_filtered_4FGL_J1147.2-2627_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/59775/ft2_4FGL_J1147.2-2627_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/59775/ltcube_521078401_521337601_4FGL_J1147.2-2627_daily_bin1087.fits outfile=/scratch/kocevski/59775/expmap_521078401_521337601_4FGL_J1147.2-2627_daily_bin1087.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/59775/ltcube_521078401_521337601_4FGL_J1147.2-2627_daily_bin1087.fits
.....................!
real 191.98
user 185.72
sys 4.61

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/59775/ft1_filtered_4FGL_J1147.2-2627_daily_bin1087.fits scfile=/scratch/kocevski/59775/ft2_4FGL_J1147.2-2627_daily_bin1087.fits outfile=/scratch/kocevski/59775/cmap_521078401_521337601_4FGL_J1147.2-2627_daily_bin1087.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59775/ft1_filtered_4FGL_J1147.2-2627_daily_bin1087.fits scfile=/scratch/kocevski/59775/ft2_4FGL_J1147.2-2627_daily_bin1087.fits outfile=/scratch/kocevski/59775/cmap_HighResolution_521078401_521337601_4FGL_J1147.2-2627_daily_bin1087.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.68
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59775/ft1_filtered_4FGL_J1147.2-2627_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/59775/ft2_4FGL_J1147.2-2627_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59775/Model_4FGL_J1147.2-2627_daily_bin1087.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/59775/ft1_filtered_4FGL_J1147.2-2627_daily_bin1087.fits.....................!
real 55.27
user 53.35
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    107.87       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.856       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .66901       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11800E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.053       1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.211       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9384       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6371       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83904       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=   5684.898     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2503 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9905        7.6235        .25059E-06   -.15045E-04
   2  Prefactor     .10000E-03    20.786        .57979E-06** at limit **
   3  Prefactor     107.90        122.15       -.64183E-06    .22474E-05
   4  Prefactor     32.815        50.122        .54394E-07   -.51768E-04
   5  Prefactor     .10000E-03    7.6300       -.62259E-06** at limit **
   6  Prefactor     .10000E-03    43.040        .42552E-06** at limit **
   7  Prefactor     .10000E-03    20.694        .18932E-06** at limit **
   8  norm          .66800        1.5413        .12344E-05    .22393E-03
   9  Prefactor     .10000E-03    49.357        .21837E-05** at limit **
  10  norm          .10000E-03    16.684        .11403E-05** at limit **
  11  Prefactor     .10000E-03    2.9861        .12054E-06** at limit **
  12  Prefactor     .10000E-03    16.335        .47942E-07** at limit **
  13  norm          .10000E-03    7.3158        .14039E-06** at limit **
  14  Prefactor     .10000E-03    13.806       -.77637E-06** at limit **
  15  norm          .10000E-03    5.8304       -.64379E-06** at limit **
  16  Prefactor     .10000E-03    4.0963       -.69598E-06** at limit **
  17  Prefactor     .10000E-03    46.317       -.17709E-05** at limit **
  18  Prefactor     .10000E-03    20.417       -.77043E-06** at limit **
  19  Prefactor     42.104        46.206        .14326E-05   -.49418E-04
  20  Prefactor     52.976        92.830       -.30362E-05   -.14734E-03
  21  Prefactor     1.9388        119.00        .40839E-04   -.20758E-04
  22  Normalizat    1.6367        .28107        .62377E-06   -.29367E-03
  23  Prefactor     .83922        .13183       -.29146E-05   -.15433E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.99047
  Prefactor  = 0.0001
  Prefactor  = 107.903
  Prefactor  = 32.8146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.667998
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.1044
  Prefactor  = 52.9759
  Prefactor  = 1.9388
  Normalizat = 1.63674
  Prefactor  = 0.839225
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.898     FROM HESSE     STATUS=OK           356 CALLS     2859 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9905        7.6216        .16406E-03   -1.5218    
   2  Prefactor     .10000E-03    20.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     107.90        121.91        .19362E-03   -1.3627    
   4  Prefactor     32.815        50.163        .69907E-04   -1.4562    
   5  Prefactor     .10000E-03    7.6372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .66800        1.5119        .13499E-03   -1.5545    
   9  Prefactor     .10000E-03    50.941        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    17.217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9982        .12723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.3172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.9316        .17745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1351        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.104        46.312        .61817E-04   -1.4409    
  20  Prefactor     52.976        93.427        .27492E-03   -1.4251    
  21  Prefactor     1.9388        120.65        .14911E-02   -1.5429    
  22  Normalizat    1.6367        .33815        .31392E-03   -.74005    
  23  Prefactor     .83922        .15717        .19954E-03   -.98298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60268e-10
Minuit parameter uncertainties:
  1  7.62284
  2  4.10749e-07
  3  122.19
  4  50.2277
  5  3.61653e-06
  6  9.30352e-05
  7  1.16661e-05
  8  1.51194
  9  0.000181767
  10  7.44659e-05
  11  5.66447e-06
  12  3.43794e-06
  13  1.73057e-05
  14  5.92115e-05
  15  3.36511e-05
  16  1.10709e-06
  17  0.000100384
  18  5.94851e-05
  19  46.3514
  20  93.6869
  21  30.6523
  22  0.338621
  23  0.157257
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  5.664e-06  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.392e-01  1.573e-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.637e+00  3.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/59775/likelihoodResults_521078401_521337601_4FGL_J1147.2-2627_daily_bin1087.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): 102
logL (Free Index) = 5684.89923612
delta logL = -0.00158472497424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5684.89765138
delta logL = 1.24327925732e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5684.898     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.124        .12780E-01** at limit **
   2  Index         2.2241        8.3201        .50000       -.16087E-05
   3  Normalizat    1.6368        .18512E-01    .31392E-03    .14900E-03
   4  Prefactor     .83922        .88500E-02    .19954E-03    .25310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22407
  Normalizat = 1.63675
  Prefactor  = 0.839223
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.898     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      275 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    280.62        .13228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2241        5.4747        .50000       -.58859    
   3  Normalizat    1.6368        .73421E-01    .62784E-04   -.74005    
   4  Prefactor     .83922        .35102E-01    .39909E-04   -.98298    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74276e-07
Minuit parameter uncertainties:
  1  4.36925e-05
  2  1096.54
  3  0.0734256
  4  0.0351028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59775': 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): 102
logL (Free Index) = 5684.89765012
delta logL = 1.27005205286e-06

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.369e-05  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.224e+00  1.097e+03  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.392e-01  3.510e-02  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.637e+00  7.343e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/59775/cmap_HighResolution_521078401_521337601_4FGL_J1147.2-2627_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-04 11:00:49.708615', job_id='59775', GAL2='0.84', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1630778449.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1087' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:00:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 59775: <4FGL_J1147.2-2627_daily_bin1087> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1087> 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) <bullet0254>, 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:00:52 2021
Results reported at Sat Sep  4 11:00:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1087 176.811 -26.4649 521078401 521337601 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 :                                   650.00 sec.
    Max Memory :                                 1239 MB
    Average Memory :                             240.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            875 sec.

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

