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


Performing analysis on: 4FGL_J1129.8-1447_daily_bin1560
RA = 172.465, Dec = -14.796
tmin = 643680001, tmax = 643939201
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='894276', job_status='RUN', time_executed='2021-09-04 02:22:29.837319', time_epoch_executed='1630747349.84' WHERE source_name='4FGL J1129.8-1447' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894276

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894276/ft1_4FGL_J1129.8-1447_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894276/ft1_4FGL_J1129.8-1447_daily_bin1560.fits outfile=/scratch/kocevski/894276/ft1_filteredMKT_4FGL_J1129.8-1447_daily_bin1560.fits ra=172.465 dec=-14.796 rad=12.0 tmin=643680001.0 tmax=643939201.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.49
user 3.25
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.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/894276/ft1_filteredMKT_4FGL_J1129.8-1447_daily_bin1560.fits evtable="EVENTS" outfile="/scratch/kocevski/894276/ft1_filtered_4FGL_J1129.8-1447_daily_bin1560.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894276/ft1_filtered_4FGL_J1129.8-1447_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/894276/ltcube_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.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/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits
.....................!
real 12.83
user 12.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894276/ft1_filtered_4FGL_J1129.8-1447_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/894276/ltcube_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.fits outfile=/scratch/kocevski/894276/expmap_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.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/894276/ltcube_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.fits
.....................!
real 191.45
user 185.27
sys 5.73

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

Setting source of interest to:
4FGL J1129.8-1447 @ 172.465 -14.796

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/894276/ft1_filtered_4FGL_J1129.8-1447_daily_bin1560.fits scfile=/scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits outfile=/scratch/kocevski/894276/cmap_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.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=172.465 yref=-14.796 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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894276/ft1_filtered_4FGL_J1129.8-1447_daily_bin1560.fits scfile=/scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits outfile=/scratch/kocevski/894276/cmap_HighResolution_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.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=172.465 yref=-14.796 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.59
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/894276/ft1_filtered_4FGL_J1129.8-1447_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894276/Model_4FGL_J1129.8-1447_daily_bin1560.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/894276/ft1_filtered_4FGL_J1129.8-1447_daily_bin1560.fits.....................!
real 55.92
user 54.38
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/894276/ft1_filtered_4FGL_J1129.8-1447_daily_bin1560.fits', '/scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits', expMap='/scratch/kocevski/894276/expmap_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.fits', expCube='/scratch/kocevski/894276/ltcube_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/894276/Model_4FGL_J1129.8-1447_daily_bin1560.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.8-1447'

4FGL J1129.8-1447
   Spectrum: PowerLaw
291    Prefactor:  4.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.692e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  5.409e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/894276/ft1_filtered_4FGL_J1129.8-1447_daily_bin1560.fits
Spacecraft file(s): /scratch/kocevski/894276/ft2_4FGL_J1129.8-1447_daily_bin1560.fits
Exposure map: /scratch/kocevski/894276/expmap_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.fits
Exposure cube: /scratch/kocevski/894276/ltcube_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/894276/Model_4FGL_J1129.8-1447_daily_bin1560.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) = 5586.37943572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9709       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5148       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4120       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7456       1.0000         .10000E-03   10000.    
    14 'Prefactor '    112.02       1.0000         .10000E-03   10000.    
    15 'norm      '    18.006       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1241       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2106       1.0000         .10000E-03   10000.    
    20 'Prefactor '    106.35       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.589       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3324       1.0000         .10000E-03   10000.    
    24 'Prefactor '    58.176       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89219       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5586.376     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3795 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7234       -.55902E-07** at limit **
   2  norm          .10000E-03    7.5355       -.68628E-07** at limit **
   3  Prefactor     .10000E-03    27.486        .21712E-06** at limit **
   4  Prefactor     .10000E-03    45.449       -.12343E-06** at limit **
   5  Prefactor     2.9738        23.889        .48428E-06   -.18894E-06
   6  Prefactor     .10000E-03    17.024        .15396E-06** at limit **
   7  Prefactor     2.5140        4.9253        .88993E-06   -.56657E-04
   8  Prefactor     .10000E-03    39.622       -.48270E-06** at limit **
   9  norm          .10000E-03    5.1272        .34777E-06** at limit **
  10  Prefactor     .10000E-03    6.2221       -.48153E-07** at limit **
  11  Prefactor     .10000E-03    28.093        .19426E-06** at limit **
  12  norm          1.4120        1.2046        .75016E-08    .11793E-05
  13  Prefactor     2.7462        5.1493        .15006E-06    .22104E-05
  14  Prefactor     112.03        21.375        .20878E-07   -.29641E-05
  15  norm          18.002        25.027        .11004E-06   -.15377E-05
  16  Prefactor     8.1386        28.708       -.66658E-06   -.26137E-05
  17  Prefactor     .10000E-03    27.330        .27429E-06** at limit **
  18  norm          .10000E-03    3.5267       -.13804E-06** at limit **
  19  Prefactor     7.2128        4.7140       -.13560E-06   -.92895E-04
  20  Prefactor     106.35        31.166       -.30760E-07   -.20794E-04
  21  Prefactor     25.590        17.073        .39108E-07    .32692E-05
  22  norm          .10000E-03    1.7953       -.75422E-08** at limit **
  23  Prefactor     2.2074        247.72        .15933E-04   -.13719E-04
  24  Prefactor     58.253        63.509       -.41932E-05   -.60645E-04
  25  Prefactor     .10000E-03    37.937       -.50644E-06** at limit **
  26  Normalizat    .89171        .26904       -.86482E-06   -.17595E-04
  27  Prefactor     1.0175        .15800        .26960E-06   -.50197E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.97375
  Prefactor  = 0.0001
  Prefactor  = 2.51402
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41202
  Prefactor  = 2.74622
  Prefactor  = 112.03
  norm       = 18.0017
  Prefactor  = 8.13858
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.21284
  Prefactor  = 106.353
  Prefactor  = 25.5903
  norm       = 0.0001
  Prefactor  = 2.20735
  Prefactor  = 58.2528
  Prefactor  = 0.0001
  Normalizat = 0.891713
  Prefactor  = 1.01746
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.376     FROM HESSE     STATUS=OK           484 CALLS     4279 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7486        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.6528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9738        23.784        .23557E-03   -1.5363    
   6  Prefactor     .10000E-03    17.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5140        4.9503        .11153E-02   -1.5391    
   8  Prefactor     .10000E-03    39.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.1526        .16519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4120        1.2023        .72692E-04   -1.5470    
  13  Prefactor     2.7462        5.1019        .20340E-03   -1.5377    
  14  Prefactor     112.03        21.430        .38006E-04   -1.3587    
  15  norm          18.002        25.012        .94387E-04   -1.4859    
  16  Prefactor     8.1386        28.548        .14066E-03   -1.5137    
  17  Prefactor     .10000E-03    27.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.5445        .13702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2128        4.7101        .12310E-03   -1.5171    
  20  Prefactor     106.35        31.156        .38996E-04   -1.3642    
  21  Prefactor     25.590        17.062        .79190E-04   -1.4696    
  22  norm          .10000E-03    1.7989        .97692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.2074        255.88        .26851E-02   -1.5411    
  24  Prefactor     58.253        64.682        .52598E-04   -1.4180    
  25  Prefactor     .10000E-03    37.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89171        .30972        .36612E-03   -.96752    
  27  Prefactor     1.0175        .18345        .21547E-03   -.92150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58476e-11
Minuit parameter uncertainties:
  1  1.22378e-07
  2  4.0947e-07
  3  9.52833e-06
  4  2.94694e-06
  5  16.8288
  6  9.72541e-06
  7  4.9511
  8  1.188e-05
  9  1.16974e-06
  10  1.30028e-07
  11  5.75911e-06
  12  1.20232
  13  5.10268
  14  21.4319
  15  25.0267
  16  28.5955
  17  8.00945e-06
  18  2.47207e-06
  19  4.71038
  20  31.1609
  21  17.0657
  22  2.37294e-08
  23  47.7413
  24  64.7596
  25  1.52015e-05
  26  0.310344
  27  0.183566
Done.

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

Extracting fit parameters...

4FGL J1129.8-1447
   Spectrum: PowerLaw
291    Prefactor:  1.120e+02  2.143e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.692e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  5.409e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.017e+00  1.836e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  8.917e-01  3.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 76.15
Ra Dec: 172.465 -14.796
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 6.24e-07 +/- 1.19e-07
Energy Flux (Fixed Index): 1.51e-04 +/- 2.89e-05

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) = 5586.3457622
delta logL = 0.0299480516424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5586.32208562
delta logL = 0.05362463033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    106.52       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7691       1.0000          .0000       10.000    
     3 'Normalizat'    .86857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   5586.322     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      232 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     106.51        26.746        .19482E-03    .11749E-02
   2  Index         2.7694        .24019        .27031E-03    .53628E-03
   3  Normalizat    .86842        .30175        .37025E-03    .11422E-04
   4  Prefactor     1.0283        .18403        .21445E-03    .11826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 106.511
  Index      = 2.76938
  Normalizat = 0.868425
  Prefactor  = 1.02825
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.322     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     106.51        26.684        .38965E-04   -1.3640    
   2  Index         2.7694        .23962        .10812E-04   -.46243    
   3  Normalizat    .86842        .30197        .14810E-04   -.97579    
   4  Prefactor     1.0283        .18417        .42891E-04   -.91794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76471e-10
Minuit parameter uncertainties:
  1  26.6873
  2  0.23974
  3  0.302563
  4  0.184281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894276': 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) = 5586.32208414
delta logL = 0.0536261053267

Extracting fit parameters...

4FGL J1129.8-1447
   Spectrum: PowerLaw
291    Prefactor:  1.065e+02  2.669e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.769e+00  2.397e-01  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  5.409e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.028e+00  1.843e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  8.684e-01  3.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 75.84
Ra Dec: 172.465 -14.796
Photon Index (Free Index): 2.77 +/- 0.24
Photon Flux (Free Index): 6.46e-07 +/- 1.39e-07
Energy Flux (Free Index): 1.48e-04 +/- 2.94e-05

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/894276/cmap_HighResolution_643680001_643939201_4FGL_J1129.8-1447_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.24e-07', energy_flux2='1.48e-04', photon_flux_error='1.19e-07', dlogl='5.36e-02', energy_flux='1.51e-04', photon_flux2='6.46e-07', job_status='DONE', time_completed='2021-09-04 02:34:09.041919', photon_index_error2='0.24', photon_index2='2.77', ts='76.15', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.94e-05', EG='0.89', time_epoch_completed='1630748049.04', return_code='0', job_id='894276', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='2.89e-05', photon_flux_error2='1.39e-07', ts2='75.84', photon_index='2.69' WHERE bin_id='1560' AND source_name='4FGL J1129.8-1447' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:34:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 894276: <4FGL_J1129.8-1447_daily_bin1560> in cluster <slac> Done

Job <4FGL_J1129.8-1447_daily_bin1560> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 02:21:55 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:22:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 02:22:15 2021
Terminated at Sat Sep  4 02:34:09 2021
Results reported at Sat Sep  4 02:34:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.8-1447_daily_bin1560 172.465 -14.796 643680001 643939201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.8-1447 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   694.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            734 sec.

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

