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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1052
RA = 176.811, Dec = -26.4649
tmin = 512006401, tmax = 512265601
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='58353', job_status='RUN', time_executed='2021-09-04 10:45:34.440194', time_epoch_executed='1630777534.44' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58353

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58353/ft1_4FGL_J1147.2-2627_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58353/ft2_4FGL_J1147.2-2627_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58353/ft1_4FGL_J1147.2-2627_daily_bin1052.fits outfile=/scratch/kocevski/58353/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1052.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=512006401.0 tmax=512265601.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.46
user 3.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58353/ft2_4FGL_J1147.2-2627_daily_bin1052.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/58353/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1052.fits evtable="EVENTS" outfile="/scratch/kocevski/58353/ft1_filtered_4FGL_J1147.2-2627_daily_bin1052.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58353/ft1_filtered_4FGL_J1147.2-2627_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/58353/ft2_4FGL_J1147.2-2627_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/58353/ltcube_512006401_512265601_4FGL_J1147.2-2627_daily_bin1052.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/58353/ft2_4FGL_J1147.2-2627_daily_bin1052.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58353/ft1_filtered_4FGL_J1147.2-2627_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/58353/ft2_4FGL_J1147.2-2627_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/58353/ltcube_512006401_512265601_4FGL_J1147.2-2627_daily_bin1052.fits outfile=/scratch/kocevski/58353/expmap_512006401_512265601_4FGL_J1147.2-2627_daily_bin1052.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/58353/ltcube_512006401_512265601_4FGL_J1147.2-2627_daily_bin1052.fits
.....................!
real 189.58
user 184.65
sys 4.62

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/58353/ft1_filtered_4FGL_J1147.2-2627_daily_bin1052.fits scfile=/scratch/kocevski/58353/ft2_4FGL_J1147.2-2627_daily_bin1052.fits outfile=/scratch/kocevski/58353/cmap_512006401_512265601_4FGL_J1147.2-2627_daily_bin1052.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 2.54
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58353/ft1_filtered_4FGL_J1147.2-2627_daily_bin1052.fits scfile=/scratch/kocevski/58353/ft2_4FGL_J1147.2-2627_daily_bin1052.fits outfile=/scratch/kocevski/58353/cmap_HighResolution_512006401_512265601_4FGL_J1147.2-2627_daily_bin1052.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.57
user 0.37
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58353/ft1_filtered_4FGL_J1147.2-2627_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/58353/ft2_4FGL_J1147.2-2627_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58353/Model_4FGL_J1147.2-2627_daily_bin1052.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/58353/ft1_filtered_4FGL_J1147.2-2627_daily_bin1052.fits.....................!
real 58.22
user 56.81
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10661E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.949       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41898E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14694E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4323       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0925       1.0000         .10000E-03   10000.    
    10 'norm      '    13.698       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12273E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.518       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4326       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .88064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    173.92       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.289       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2358       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89930       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=   6257.449     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2635 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.164        .41435E-05** at limit **
   2  Prefactor     17.957        29.948        .67717E-06    .66524E-05
   3  Prefactor     .10000E-03    630.51       -.42456E-05** at limit **
   4  Prefactor     .10000E-03    51.803       -.22131E-05** at limit **
   5  Prefactor     .10000E-03    7.5713        .23107E-06** at limit **
   6  Prefactor     .10000E-03    52.923       -.19798E-05** at limit **
   7  Prefactor     .10000E-03    73.622        .33733E-05** at limit **
   8  norm          1.4330        1.3186        .67565E-07    .63144E-04
   9  Prefactor     4.0996        9.0240        .21014E-06   -.12287E-04
  10  norm          13.697        10.011        .20485E-06   -.17752E-04
  11  Prefactor     .10000E-03    6.7684        .66917E-06** at limit **
  12  Prefactor     .10000E-03    12.342        .29360E-07** at limit **
  13  norm          .10000E-03    140.09       -.29883E-06** at limit **
  14  Prefactor     30.510        19.753       -.21706E-05   -.14916E-04
  15  norm          .10000E-03    6.9769        .84809E-06** at limit **
  16  Prefactor     4.4314        6.2174       -.44237E-06    .27972E-05
  17  Prefactor     .10000E-03    175.86       -.20106E-05** at limit **
  18  Prefactor     .10000E-03    17.100       -.49427E-06** at limit **
  19  Prefactor     .10000E-03    37.229        .24000E-06** at limit **
  20  Prefactor     174.12        81.404       -.70851E-06   -.29417E-05
  21  Prefactor     22.293        29.101       -.68650E-07   -.37990E-06
  22  Normalizat    1.2355        .25948        .11319E-05   -.75920E-04
  23  Prefactor     .89937        .12532       -.93663E-06    .49417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.9567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43299
  Prefactor  = 4.09959
  norm       = 13.6971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.5099
  norm       = 0.000100001
  Prefactor  = 4.43143
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 174.116
  Prefactor  = 22.2926
  Normalizat = 1.23546
  Prefactor  = 0.899372
 **********
 **   18 **HESSE 
 **********

 FCN=   6257.449     FROM HESSE     STATUS=OK           370 CALLS     3005 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.839        .32862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.957        29.943        .94536E-04   -1.4860    
   3  Prefactor     .10000E-03    636.77        .21242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    74.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4330        1.3038        .83449E-04   -1.5469    
   9  Prefactor     4.0996        9.0039        .19929E-03   -1.5303    
  10  norm          13.697        10.007        .10822E-03   -1.4968    
  11  Prefactor     .10000E-03    7.0507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    144.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.510        19.789        .72528E-04   -1.4603    
  15  norm          .10000E-03    7.3378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4314        6.1967        .19127E-03   -1.5287    
  17  Prefactor     .10000E-03    175.58        .20844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     174.12        81.390        .15299E-03   -1.3061    
  21  Prefactor     22.293        29.092        .84842E-04   -1.4763    
  22  Normalizat    1.2355        .30459        .33635E-03   -.85514    
  23  Prefactor     .89937        .14761        .18931E-03   -.96163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84963e-10
Minuit parameter uncertainties:
  1  9.46954e-05
  2  29.9678
  3  0.00036792
  4  9.71992e-05
  5  5.48306e-06
  6  5.82028e-05
  7  7.82874e-05
  8  1.30386
  9  9.00684
  10  10.0087
  11  2.40187e-05
  12  1.02615e-05
  13  0.000479373
  14  19.7936
  15  0.000134182
  16  6.1976
  17  0.000595499
  18  3.43883e-05
  19  6.41643e-05
  20  81.4428
  21  29.1101
  22  0.30503
  23  0.147676
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.402e-05  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.994e-01  1.477e-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.235e+00  3.050e-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.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58353/likelihoodResults_512006401_512265601_4FGL_J1147.2-2627_daily_bin1052.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) = 6257.44935849
delta logL = -0.00067710055373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6257.44868082
delta logL = 5.67774804949e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4862       1.0000          .0000       10.000    
     3 'Normalizat'    1.2352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89950       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6257.449     FROM MIGRAD    STATUS=FAILED       108 CALLS      267 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17311E-03    213.95        .31737E-02** at limit **
   2  Index         2.0783        5.7936        .50000        .21225E-04
   3  Normalizat    1.2355        .14336E-01    .33635E-03    .10241E-04
   4  Prefactor     .89937        .70518E-02    .18931E-03    .70382E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6257.449     FROM SIMPLEX   STATUS=PROGRESS     104 CALLS      371 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14768E-03    213.95        .10108E-02** at limit **
   2  Index         2.0767        5.7936        .57419E-03    .21225E-04
   3  Normalizat    1.2355        .14336E-01    .33649E-05    .10241E-04
   4  Prefactor     .89937        .70518E-02    .19758E-05    .70382E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6257.449     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      432 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    557.46        .12695E-02** at limit **
   2  Index         2.0041        8.9308        .50000       -.60913E-07
   3  Normalizat    1.2355        .21989E-01    .13454E-04   -.58812E-04
   4  Prefactor     .89937        .10816E-01    .75724E-05   -.99688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00415
  Normalizat = 1.23546
  Prefactor  = 0.89937
 **********
 **   18 **HESSE 
 **********

 FCN=   6257.449     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      461 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6196.3        .25390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0041        8.8558        .50000       -.64246    
   3  Normalizat    1.2355        .49438E-01    .26908E-05   -.85514    
   4  Prefactor     .89937        .24320E-01    .15145E-05   -.96163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47374e-10
Minuit parameter uncertainties:
  1  0.00203422
  2  570.998
  3  0.04944
  4  0.0243203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58353': 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) = 6257.44867532
delta logL = 6.0687889345e-06

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.034e-03  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.004e+00  5.710e+02  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.994e-01  2.432e-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.235e+00  4.944e-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/58353/cmap_HighResolution_512006401_512265601_4FGL_J1147.2-2627_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-04 10:57:20.840698', job_id='58353', GAL2='0.90', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630778240.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1052' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:57:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 58353: <4FGL_J1147.2-2627_daily_bin1052> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1052 176.811 -26.4649 512006401 512265601 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 :                                   702.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

