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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin660
RA = 172.38, Dec = 30.5789
tmin = 410400001, tmax = 410659201
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='877017', job_status='RUN', time_executed='2021-09-04 01:30:46.945878', time_epoch_executed='1630744246.95' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877017/ft1_4FGL_J1129.5+3034_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877017/ft1_4FGL_J1129.5+3034_daily_bin660.fits outfile=/scratch/kocevski/877017/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin660.fits ra=172.38 dec=30.5789 rad=12.0 tmin=410400001.0 tmax=410659201.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 6.69
user 6.29
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.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/877017/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin660.fits evtable="EVENTS" outfile="/scratch/kocevski/877017/ft1_filtered_4FGL_J1129.5+3034_daily_bin660.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877017/ft1_filtered_4FGL_J1129.5+3034_daily_bin660.fits" evtable="EVENTS" scfile=/scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits sctable="SC_DATA" outfile=/scratch/kocevski/877017/ltcube_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.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/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits
.....................!
real 12.41
user 12.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877017/ft1_filtered_4FGL_J1129.5+3034_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/877017/ltcube_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.fits outfile=/scratch/kocevski/877017/expmap_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.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/877017/ltcube_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.fits
.....................!
real 192.13
user 185.71
sys 5.46

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.5+3034 @ 172.38 30.5789

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/877017/ft1_filtered_4FGL_J1129.5+3034_daily_bin660.fits scfile=/scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits outfile=/scratch/kocevski/877017/cmap_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.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.38 yref=30.5789 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877017/ft1_filtered_4FGL_J1129.5+3034_daily_bin660.fits scfile=/scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits outfile=/scratch/kocevski/877017/cmap_HighResolution_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.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.38 yref=30.5789 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877017/ft1_filtered_4FGL_J1129.5+3034_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877017/Model_4FGL_J1129.5+3034_daily_bin660.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/877017/ft1_filtered_4FGL_J1129.5+3034_daily_bin660.fits.....................!
real 42.27
user 40.87
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/877017/ft1_filtered_4FGL_J1129.5+3034_daily_bin660.fits', '/scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits', expMap='/scratch/kocevski/877017/expmap_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.fits', expCube='/scratch/kocevski/877017/ltcube_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/877017/Model_4FGL_J1129.5+3034_daily_bin660.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.5+3034'

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.468e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/877017/ft1_filtered_4FGL_J1129.5+3034_daily_bin660.fits
Spacecraft file(s): /scratch/kocevski/877017/ft2_4FGL_J1129.5+3034_daily_bin660.fits
Exposure map: /scratch/kocevski/877017/expmap_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.fits
Exposure cube: /scratch/kocevski/877017/ltcube_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/877017/Model_4FGL_J1129.5+3034_daily_bin660.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) = 4164.12208342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0884       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.642       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8010       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.509       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.347       1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.601       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5889       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0095       1.0000         .10000E-03   10000.    
    19 'Prefactor '    104.09       1.0000         .10000E-03   10000.    
    20 'norm      '    7.0298       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3912       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12779E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.113       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3458       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    11.952       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3766       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.8977       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .70921       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0775       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4164.100     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4368 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0887        13.428        .12219E-06   -.12889E-04
   2  Prefactor     .10000E-03    7.7672        .29233E-07** at limit **
   3  Prefactor     7.7789        15.150        .87390E-06   -.24806E-04
   4  Prefactor     34.644        22.847        .27371E-06    .36227E-04
   5  norm          1.8010        .40173       -.14950E-07   -.16151E-02
   6  Prefactor     .10000E-03    3.2436        .14887E-06** at limit **
   7  Prefactor     .10001E-03    33.466       -.96897E-06** at limit **
   8  Prefactor     .10000E-03    10.732       -.12027E-06** at limit **
   9  norm          .10000E-03    12.628       -.19643E-06** at limit **
  10  Prefactor     .10000E-03    3.5563        .12661E-07** at limit **
  11  norm          .10000E-03    14.778        .20663E-06** at limit **
  12  Prefactor     27.510        17.684        .33050E-06   -.86340E-04
  13  Prefactor     .10000E-03    3.0228       -.21492E-06** at limit **
  14  Prefactor     42.346        55.153       -.10303E-05   -.43282E-04
  15  Prefactor     51.601        24.733       -.92625E-07   -.10907E-04
  16  norm          1.5894        2.4584       -.80524E-07   -.16706E-03
  17  Prefactor     .10000E-03    9.5661        .11318E-06** at limit **
  18  Prefactor     3.0127        7.3957        .49695E-05   -.66540E-03
  19  Prefactor     104.09        63.555        .26061E-06   -.16723E-03
  20  norm          7.0299        2.1638        .22975E-07    .94163E-04
  21  Prefactor     8.3999        20.429       -.35563E-05   -.50349E-03
  22  Prefactor     .10000E-03    1.9466        .19414E-05** at limit **
  23  Prefactor     .10001E-03    29.016        .12541E-06** at limit **
  24  Prefactor     10.119        64.719        .13380E-06    .42954E-04
  25  norm          2.3458        1.4850        .78864E-07   -.33417E-03
  26  Prefactor     .10000E-03    13.122        .48126E-07** at limit **
  27  norm          11.952        6.3889        .62455E-07    .12869E-03
  28  Prefactor     .10000E-03    3.9235        .44805E-08** at limit **
  29  Prefactor     3.3766        4.2544        .22083E-07    .21642E-03
  30  Prefactor     1.8977        2.9070        .13759E-06   -.10240E-03
  31  Normalizat    .70895        .22491       -.45509E-05   -.58945E-03
  32  Prefactor     1.0778        .23772        .16429E-05   -.51302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.08869
  Prefactor  = 0.0001
  Prefactor  = 7.7789
  Prefactor  = 34.6443
  norm       = 1.80102
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.5099
  Prefactor  = 0.0001
  Prefactor  = 42.3456
  Prefactor  = 51.6011
  norm       = 1.58945
  Prefactor  = 0.000100001
  Prefactor  = 3.01267
  Prefactor  = 104.086
  norm       = 7.02989
  Prefactor  = 8.39994
  Prefactor  = 0.000100002
  Prefactor  = 0.00010001
  Prefactor  = 10.1189
  norm       = 2.3458
  Prefactor  = 0.0001
  norm       = 11.9519
  Prefactor  = 0.0001
  Prefactor  = 3.37659
  Prefactor  = 1.89771
  Normalizat = 0.708955
  Prefactor  = 1.07785
 **********
 **   18 **HESSE 
 **********

 FCN=   4164.100     FROM HESSE     STATUS=OK           653 CALLS     5021 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0887        13.425        .13295E-03   -1.5105    
   2  Prefactor     .10000E-03    7.7997        .17564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7789        15.075        .14378E-03   -1.5150    
   4  Prefactor     34.644        22.873        .68086E-04   -1.4530    
   5  norm          1.8010        .40215        .18709E-04   -1.5440    
   6  Prefactor     .10000E-03    3.3063        .22387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    34.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5631        .11882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    15.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.510        17.716        .76383E-04   -1.4658    
  13  Prefactor     .10000E-03    3.0826        .21736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.346        54.306        .61603E-04   -1.4406    
  15  Prefactor     51.601        24.848        .55831E-04   -1.4270    
  16  norm          1.5894        2.3999        .11365E-03   -1.5456    
  17  Prefactor     .10000E-03    9.6532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0127        7.4460        .11698E-02   -1.5361    
  19  Prefactor     104.09        63.793        .39412E-04   -1.3664    
  20  norm          7.0299        2.1742        .46333E-04   -1.5178    
  21  Prefactor     8.3999        20.564        .13839E-03   -1.5128    
  22  Prefactor     .10000E-03    8.0630        .15343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    29.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.119        64.899        .12600E-03   -1.5072    
  25  norm          2.3458        1.4851        .60038E-04   -1.5402    
  26  Prefactor     .10000E-03    13.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          11.952        6.4082        .10198E-03   -1.5016    
  28  Prefactor     .10000E-03    3.9288        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.3766        4.2595        .12938E-03   -1.5340    
  30  Prefactor     1.8977        2.8811        .13020E-03   -1.5432    
  31  Normalizat    .70895        .26195        .28101E-03   -1.0354    
  32  Prefactor     1.0778        .27863        .27447E-03   -.90178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26659e-09
Minuit parameter uncertainties:
  1  13.4294
  2  6.16766e-05
  3  15.0825
  4  22.8792
  5  0.402152
  6  1.13915e-05
  7  0.00129435
  8  1.52216e-05
  9  0.00016898
  10  1.66841e-06
  11  0.000125839
  12  17.7192
  13  2.09248e-05
  14  54.3699
  15  24.8533
  16  2.40002
  17  0.000167768
  18  7.44832
  19  63.8348
  20  2.17425
  21  20.5813
  22  0.000257419
  23  0.00107275
  24  51.3338
  25  1.48512
  26  0.000132235
  27  6.4086
  28  7.39427e-06
  29  4.25993
  30  2.88131
  31  0.26241
  32  0.279005
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  5.160e+01  2.485e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.078e+00  2.790e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  7.090e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.49
Ra Dec: 172.380 30.579
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 5.00e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 1.53e-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) = 4163.59182994
delta logL = 0.508555664079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4163.5912007
delta logL = 0.509184908487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.172       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9952       1.0000          .0000       10.000    
     3 'Normalizat'    .75507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0435       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+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=   4163.591     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      304 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.123        37.425        .23792E-03   -.43005E-06
   2  Index         1.9945        .43344        .55974E-02    .11072E-03
   3  Normalizat    .75522        .23289        .27287E-03   -.15415E-05
   4  Prefactor     1.0435        .27254        .27825E-03    .44944E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.1233
  Index      = 1.9945
  Normalizat = 0.755224
  Prefactor  = 1.04347
 **********
 **   18 **HESSE 
 **********

 FCN=   4163.591     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.123        37.217        .95169E-05   -1.4019    
   2  Index         1.9945        .43075        .11195E-02   -.64488    
   3  Normalizat    .75522        .23299        .10915E-04   -1.0175    
   4  Prefactor     1.0435        .27273        .11130E-04   -.91294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58072e-13
Minuit parameter uncertainties:
  1  37.2296
  2  0.431591
  3  0.233299
  4  0.273092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877017': 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) = 4163.5911977
delta logL = 0.509187905141

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  7.112e+01  3.723e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.995e+00  4.316e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.043e+00  2.731e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  7.552e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.37
Ra Dec: 172.380 30.579
Photon Index (Free Index): 1.99 +/- 0.43
Photon Flux (Free Index): 7.19e-08 +/- 4.78e-08
Energy Flux (Free Index): 5.04e-05 +/- 4.10e-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/877017/cmap_HighResolution_410400001_410659201_4FGL_J1129.5+3034_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='5.04e-05', photon_flux_error='5.00e-08', dlogl='5.09e-01', energy_flux='3.17e-05', photon_flux2='7.19e-08', job_status='DONE', time_completed='2021-09-04 01:42:37.639749', photon_index_error2='0.43', photon_index2='1.99', ts='15.49', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.10e-05', EG='0.71', time_epoch_completed='1630744957.64', return_code='0', job_id='877017', GAL2='1.04', EG2='0.76', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.78e-08', ts2='16.37', photon_index='2.46' WHERE bin_id='660' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:42:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 877017: <4FGL_J1129.5+3034_daily_bin660> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin660> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 01:27:06 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:28:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 01:28:41 2021
Terminated at Sat Sep  4 01:42:38 2021
Results reported at Sat Sep  4 01:42:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin660 172.38 30.5789 410400001 410659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.5+3034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            932 sec.

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

