/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 20 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 = 7461
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1129.2-0529_daily_bin640
RA = 172.311, Dec = -5.4874
tmin = 405216001, tmax = 405475201
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='863230', job_status='RUN', time_executed='2021-09-04 00:44:48.957311', time_epoch_executed='1630741488.96' WHERE source_name='4FGL J1129.2-0529' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/863230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/863230/ft1_4FGL_J1129.2-0529_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/863230/ft1_4FGL_J1129.2-0529_daily_bin640.fits outfile=/scratch/kocevski/863230/ft1_filteredMKT_4FGL_J1129.2-0529_daily_bin640.fits ra=172.311 dec=-5.4874 rad=12.0 tmin=405216001.0 tmax=405475201.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.54
user 3.18
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.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/863230/ft1_filteredMKT_4FGL_J1129.2-0529_daily_bin640.fits evtable="EVENTS" outfile="/scratch/kocevski/863230/ft1_filtered_4FGL_J1129.2-0529_daily_bin640.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 1.41
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/863230/ft1_filtered_4FGL_J1129.2-0529_daily_bin640.fits" evtable="EVENTS" scfile=/scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits sctable="SC_DATA" outfile=/scratch/kocevski/863230/ltcube_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.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/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits
.....................!
real 18.26
user 16.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/863230/ft1_filtered_4FGL_J1129.2-0529_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/863230/ltcube_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.fits outfile=/scratch/kocevski/863230/expmap_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.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/863230/ltcube_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.fits
.....................!
real 196.53
user 186.88
sys 5.56

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

Setting source of interest to:
4FGL J1129.2-0529 @ 172.311 -5.4874

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/863230/ft1_filtered_4FGL_J1129.2-0529_daily_bin640.fits scfile=/scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits outfile=/scratch/kocevski/863230/cmap_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.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.311 yref=-5.4874 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 3.41
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/863230/ft1_filtered_4FGL_J1129.2-0529_daily_bin640.fits scfile=/scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits outfile=/scratch/kocevski/863230/cmap_HighResolution_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.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.311 yref=-5.4874 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/863230/ft1_filtered_4FGL_J1129.2-0529_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/863230/Model_4FGL_J1129.2-0529_daily_bin640.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/863230/ft1_filtered_4FGL_J1129.2-0529_daily_bin640.fits.....................!
real 65.08
user 57.41
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/863230/ft1_filtered_4FGL_J1129.2-0529_daily_bin640.fits', '/scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits', expMap='/scratch/kocevski/863230/expmap_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.fits', expCube='/scratch/kocevski/863230/ltcube_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/863230/Model_4FGL_J1129.2-0529_daily_bin640.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.2-0529'

4FGL J1129.2-0529
   Spectrum: PowerLaw
295    Prefactor:  1.722e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.634e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  7.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/863230/ft1_filtered_4FGL_J1129.2-0529_daily_bin640.fits
Spacecraft file(s): /scratch/kocevski/863230/ft2_4FGL_J1129.2-0529_daily_bin640.fits
Exposure map: /scratch/kocevski/863230/expmap_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.fits
Exposure cube: /scratch/kocevski/863230/ltcube_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/863230/Model_4FGL_J1129.2-0529_daily_bin640.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) = 6317.74298376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47419       1.0000         .10000E-03   10000.    
     2 'norm      '    11.464       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.843       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1808       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18787E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6115       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10993E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .96548       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9005       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11833E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0005       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84523       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6317.675     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2534 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47399        .89010        .24964E-07    .11557E-03
   2  norm          11.463        5.8368        .29447E-07   -.19618E-04
   3  Prefactor     11.847        15.001        .73346E-07    .18142E-04
   4  Prefactor     6.1870        11.557       -.23195E-06   -.84516E-04
   5  Prefactor     .10000E-03    5.5881        .97875E-06** at limit **
   6  Prefactor     6.6144        5.1869        .11263E-05    .10290E-02
   7  Prefactor     .10000E-03    24.902        .27837E-05** at limit **
   8  norm          .10000E-03    4.2446        .15210E-06** at limit **
   9  Prefactor     .10000E-03    5.1967        .20118E-06** at limit **
  10  Prefactor     .10000E-03    6.7015        .33471E-06** at limit **
  11  norm          1.3785        93.088       -.68144E-05   -.54868E-04
  12  Prefactor     .96638        2.0672        .12207E-06    .10382E-03
  13  Prefactor     8.8572        32.810        .36211E-05    .75485E-04
  14  Prefactor     .10000E-03    42.690       -.41717E-05** at limit **
  15  norm          5.1417        4.3861        .95250E-08    .11126E-03
  16  Prefactor     .10000E-03    1.4895       -.24903E-07** at limit **
  17  Prefactor     .10025E-03    25.693       -.52979E-05** at limit **
  18  Prefactor     .10000E-03    5.6439       -.67324E-06** at limit **
  19  Prefactor     .10000E-03    11.650        .77856E-06** at limit **
  20  Prefactor     .10000E-03    6.4330        .67246E-06** at limit **
  21  Prefactor     .10000E-03    7.3018       -.90412E-06** at limit **
  22  Prefactor     .10000E-03    15.584       -.11483E-05** at limit **
  23  Prefactor     2.0014        12.069        .49603E-06    .35759E-04
  24  Normalizat    .84492        .20955       -.94579E-06    .13192E-03
  25  Prefactor     1.1794        .15074       -.37191E-07    .13927E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.473993
  norm       = 11.4631
  Prefactor  = 11.8468
  Prefactor  = 6.18702
  Prefactor  = 0.000100003
  Prefactor  = 6.61441
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37846
  Prefactor  = 0.966383
  Prefactor  = 8.85721
  Prefactor  = 0.0001
  norm       = 5.14167
  Prefactor  = 0.0001
  Prefactor  = 0.00010025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.00136
  Normalizat = 0.844917
  Prefactor  = 1.17937
 **********
 **   18 **HESSE 
 **********

 FCN=   6317.675     FROM HESSE     STATUS=OK           431 CALLS     2965 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47399        .80901        .65942E-03   -1.5570    
   2  norm          11.463        5.8353        .11832E-03   -1.5031    
   3  Prefactor     11.847        14.099        .11641E-03   -1.5019    
   4  Prefactor     6.1870        11.301        .16148E-03   -1.5210    
   5  Prefactor     .10000E-03    17.844        .34101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6144        5.3829        .77848E-03   -1.5194    
   7  Prefactor     .10000E-03    24.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.2644        .15993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3161        .35071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3785        91.283        .35840E-03   -1.5473    
  12  Prefactor     .96638        2.0152        .15846E-03   -1.5511    
  13  Prefactor     8.8572        31.949        .13435E-03   -1.5113    
  14  Prefactor     .10000E-03    42.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1417        4.3632        .14812E-03   -1.5254    
  16  Prefactor     .10000E-03    2.7160        .18665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10025E-03    68.474        .55179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.6425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0014        12.018        .29282E-03   -1.5425    
  24  Normalizat    .84492        .23943        .31374E-03   -.98424    
  25  Prefactor     1.1794        .17350        .20271E-03   -.86968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46466e-09
Minuit parameter uncertainties:
  1  0.809033
  2  5.83557
  3  14.1029
  4  11.3049
  5  0.000482067
  6  5.38326
  7  0.000176464
  8  1.70538e-06
  9  3.21305e-05
  10  1.63474e-05
  11  22.4699
  12  2.01534
  13  32.0107
  14  0.000286324
  15  4.36342
  16  3.58344e-05
  17  0.00827654
  18  2.05213e-05
  19  3.56953e-05
  20  1.95331e-05
  21  2.78411e-05
  22  5.29138e-05
  23  9.81121
  24  0.239731
  25  0.17358
Done.

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

Extracting fit parameters...

4FGL J1129.2-0529
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.213e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.634e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  7.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.179e+00  1.736e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.449e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.311 -5.487
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/863230/likelihoodResults_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.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) = 6317.6758475
delta logL = -0.000898033300473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6317.67494971
delta logL = -2.43383510679e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6454       1.0000          .0000       10.000    
     3 'Normalizat'    .84481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+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=   6317.675     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    30.654        .35202E-02** at limit **
   2  Index         2.7077        7.5567        .50000       -.14526E-04
   3  Normalizat    .84492        .11904E-01    .31374E-03    .10983E-03
   4  Prefactor     1.1794        .89885E-02    .20271E-03    .14838E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100916
  Index      = 2.70768
  Normalizat = 0.844916
  Prefactor  = 1.17937
 **********
 **   18 **HESSE 
 **********

 FCN=   6317.675     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10092E-03    211.53        .70405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7077        7.8981        .50000       -.47627    
   3  Normalizat    .84492        .32440E-01    .12550E-04   -.98424    
   4  Prefactor     1.1794        .24493E-01    .40542E-04   -.86968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.01275e-08
Minuit parameter uncertainties:
  1  0.0279329
  2  720.347
  3  0.0324404
  4  0.0244933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/863230': 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) = 6317.67494927
delta logL = 2.00259819394e-07

Extracting fit parameters...

4FGL J1129.2-0529
   Spectrum: PowerLaw
295    Prefactor:  1.009e-04  2.793e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.708e+00  7.203e+02  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  7.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.179e+00  2.449e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.449e-01  3.244e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.311 -5.487

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/863230/cmap_HighResolution_405216001_405475201_4FGL_J1129.2-0529_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 00:57:31.047787', job_id='863230', GAL2='1.18', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630742251.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='640' AND source_name='4FGL J1129.2-0529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 00:57:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 863230: <4FGL_J1129.2-0529_daily_bin640> in cluster <slac> Done

Job <4FGL_J1129.2-0529_daily_bin640> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 00:42:45 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 00:43:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 00:43:27 2021
Terminated at Sat Sep  4 00:57:32 2021
Results reported at Sat Sep  4 00:57:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.2-0529_daily_bin640 172.311 -5.4874 405216001 405475201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.2-0529 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   738.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            887 sec.

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

