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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin954
RA = 172.38, Dec = 30.5789
tmin = 486604801, tmax = 486864001
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='879451', job_status='RUN', time_executed='2021-09-04 01:38:12.449636', time_epoch_executed='1630744692.45' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='954'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/879451

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/879451/ft1_4FGL_J1129.5+3034_daily_bin954.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/879451/ft2_4FGL_J1129.5+3034_daily_bin954.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/879451/ft1_4FGL_J1129.5+3034_daily_bin954.fits outfile=/scratch/kocevski/879451/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin954.fits ra=172.38 dec=30.5789 rad=12.0 tmin=486604801.0 tmax=486864001.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.92
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/879451/ft1_filtered_4FGL_J1129.5+3034_daily_bin954.fits" evtable="EVENTS" scfile=/scratch/kocevski/879451/ft2_4FGL_J1129.5+3034_daily_bin954.fits sctable="SC_DATA" outfile=/scratch/kocevski/879451/ltcube_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.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/879451/ft2_4FGL_J1129.5+3034_daily_bin954.fits
.....................!
real 11.83
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/879451/ft1_filtered_4FGL_J1129.5+3034_daily_bin954.fits evtable="EVENTS" scfile=/scratch/kocevski/879451/ft2_4FGL_J1129.5+3034_daily_bin954.fits sctable="SC_DATA" expcube=/scratch/kocevski/879451/ltcube_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.fits outfile=/scratch/kocevski/879451/expmap_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.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/879451/ltcube_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.fits
.....................!
real 191.76
user 185.17
sys 4.67

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/879451/ft1_filtered_4FGL_J1129.5+3034_daily_bin954.fits scfile=/scratch/kocevski/879451/ft2_4FGL_J1129.5+3034_daily_bin954.fits outfile=/scratch/kocevski/879451/cmap_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/879451/ft1_filtered_4FGL_J1129.5+3034_daily_bin954.fits scfile=/scratch/kocevski/879451/ft2_4FGL_J1129.5+3034_daily_bin954.fits outfile=/scratch/kocevski/879451/cmap_HighResolution_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/879451/ft1_filtered_4FGL_J1129.5+3034_daily_bin954.fits', '/scratch/kocevski/879451/ft2_4FGL_J1129.5+3034_daily_bin954.fits', expMap='/scratch/kocevski/879451/expmap_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.fits', expCube='/scratch/kocevski/879451/ltcube_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/879451/Model_4FGL_J1129.5+3034_daily_bin954.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/879451/ft1_filtered_4FGL_J1129.5+3034_daily_bin954.fits
Spacecraft file(s): /scratch/kocevski/879451/ft2_4FGL_J1129.5+3034_daily_bin954.fits
Exposure map: /scratch/kocevski/879451/expmap_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.fits
Exposure cube: /scratch/kocevski/879451/ltcube_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/879451/Model_4FGL_J1129.5+3034_daily_bin954.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) = 6258.46045019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.403       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9049       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.293       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6174       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.240       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .83200       1.0000         .10000E-03   10000.    
    14 'Prefactor '    123.73       1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.913       1.0000         .10000E-03   10000.    
    16 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.795       1.0000         .10000E-03   10000.    
    20 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25627E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5610       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.8336       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.5736       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.8225       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.2949       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1225       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73398       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=   6258.321     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4574 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.664       -.17063E-06** at limit **
   2  Prefactor     10.595        8.7965       -.53955E-07    .75342E-05
   3  Prefactor     .10000E-03    10.189       -.34424E-06** at limit **
   4  Prefactor     10.406        10.763       -.29181E-07    .22474E-04
   5  norm          1.9049        .41130       -.96195E-08   -.41549E-03
   6  Prefactor     .10000E-03    2.0504       -.48755E-06** at limit **
   7  Prefactor     16.300        17.784       -.58596E-06   -.15049E-03
   8  Prefactor     .10000E-03    35.528       -.18581E-05** at limit **
   9  norm          .10000E-03    7.5578       -.58990E-06** at limit **
  10  Prefactor     2.6170        7.2223       -.13267E-06    .17951E-04
  11  norm          .10000E-03    5.3049       -.22863E-06** at limit **
  12  Prefactor     23.245        15.489       -.91033E-07    .15005E-05
  13  Prefactor     .82157        5.6793       -.28317E-05   -.11083E-03
  14  Prefactor     123.91        81.173        .75340E-06   -.79546E-04
  15  Prefactor     47.927        26.872       -.17696E-06   -.47653E-04
  16  norm          .10000E-03    2.1103        .17718E-05** at limit **
  17  Prefactor     .10000E-03    17.928       -.12088E-05** at limit **
  18  Prefactor     .10000E-03    4.1441       -.79795E-06** at limit **
  19  Prefactor     22.785        39.544        .21459E-05   -.17108E-04
  20  norm          .10000E-03    .48547       -.53221E-06** at limit **
  21  Prefactor     .10106E-03    21.649        .40645E-06** at limit **
  22  Prefactor     6.5606        2.8595        .14920E-06    .16887E-03
  23  Prefactor     .10000E-03    14.594       -.58970E-06** at limit **
  24  Prefactor     .10000E-03    12.237        .50639E-07** at limit **
  25  norm          2.8335        1.4131        .29023E-07    .13607E-03
  26  Prefactor     .10000E-03    36.489       -.65791E-06** at limit **
  27  norm          8.5737        3.3646       -.10772E-07    .54687E-04
  28  Prefactor     8.8230        7.8451       -.79611E-07    .13391E-04
  29  Prefactor     .10000E-03    1.1375       -.93182E-07** at limit **
  30  Prefactor     3.2949        2.7397       -.28982E-07    .34234E-04
  31  Normalizat    1.1225        .19098        .98427E-06    .87838E-04
  32  Prefactor     .73390        .19567        .90859E-06    .82066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.5954
  Prefactor  = 0.0001
  Prefactor  = 10.4064
  norm       = 1.90494
  Prefactor  = 0.0001
  Prefactor  = 16.2997
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.61698
  norm       = 0.0001
  Prefactor  = 23.2449
  Prefactor  = 0.821567
  Prefactor  = 123.908
  Prefactor  = 47.9273
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7848
  norm       = 0.0001
  Prefactor  = 0.000101063
  Prefactor  = 6.56064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83347
  Prefactor  = 0.0001
  norm       = 8.57368
  Prefactor  = 8.82303
  Prefactor  = 0.0001
  Prefactor  = 3.29493
  Normalizat = 1.12249
  Prefactor  = 0.733903
 **********
 **   18 **HESSE 
 **********

 FCN=   6258.321     FROM HESSE     STATUS=OK           679 CALLS     5253 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.595        8.7979        .61543E-03   -1.5057    
   3  Prefactor     .10000E-03    10.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.406        10.767        .12423E-03   -1.5063    
   5  norm          1.9049        .41293        .21973E-04   -1.5432    
   6  Prefactor     .10000E-03    4.0945        .21694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.300        17.771        .99225E-04   -1.4900    
   8  Prefactor     .10000E-03    36.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.5665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6170        7.1902        .25211E-03   -1.5384    
  11  norm          .10000E-03    5.3322        .17799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.245        15.470        .83090E-04   -1.4743    
  13  Prefactor     .82157        7.1535        .21186E-02   -1.5527    
  14  Prefactor     123.91        85.866        .18093E-03   -1.3477    
  15  Prefactor     47.927        26.910        .57929E-04   -1.4322    
  16  norm          .10000E-03    3.2506        .19795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1585        .15662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.785        38.852        .83895E-04   -1.4753    
  20  norm          .10000E-03    .84461        .10242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10106E-03    26.619        .95914E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.5606        2.8701        .81173E-04   -1.5196    
  23  Prefactor     .10000E-03    14.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.8335        1.4116        .62816E-04   -1.5371    
  26  Prefactor     .10000E-03    36.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.5737        3.3556        .86632E-04   -1.5122    
  28  Prefactor     8.8230        7.8547        .13495E-03   -1.5114    
  29  Prefactor     .10000E-03    3.5563        .16367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.2949        2.7346        .11356E-03   -1.5345    
  31  Normalizat    1.1225        .22872        .25124E-03   -.89033    
  32  Prefactor     .73390        .23013        .33053E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85692e-08
Minuit parameter uncertainties:
  1  4.64492e-05
  2  8.79901
  3  1.78877e-05
  4  10.7692
  5  0.412927
  6  3.76883e-05
  7  17.7763
  8  9.93364e-05
  9  1.12465e-05
  10  7.19258
  11  8.90689e-06
  12  15.4725
  13  4.84902
  14  85.9524
  15  26.9166
  16  2.35315e-05
  17  0.000111621
  18  9.55629e-06
  19  38.8953
  20  1.59399e-05
  21  0.0106439
  22  2.87017
  23  7.93013e-05
  24  5.55389e-05
  25  1.41164
  26  1.91969e-06
  27  3.35572
  28  7.85562
  29  7.71191e-06
  30  2.73469
  31  0.228924
  32  0.230434
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  4.793e+01  2.692e+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:  7.339e-01  2.304e-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:  1.122e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.93
Ra Dec: 172.380 30.579
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 9.65e-08 +/- 5.42e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 1.65e-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) = 6257.88620646
delta logL = 0.435274303736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6257.87715222
delta logL = 0.444328540561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.324       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0235       1.0000          .0000       10.000    
     3 'Normalizat'    1.0722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77816       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=   6257.877     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      305 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.344        35.508        .81219E-04    .48431E-04
   2  Index         3.0228        .84822        .41540E-02    .30111E-04
   3  Normalizat    1.0724        .22295        .25625E-03   -.43061E-03
   4  Prefactor     .77790        .23749        .32198E-03    .94485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3435
  Index      = 3.02278
  Normalizat = 1.07235
  Prefactor  = 0.777898
 **********
 **   18 **HESSE 
 **********

 FCN=   6257.877     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.344        28.139        .32488E-05   -1.4721    
   2  Index         3.0228        .67249        .16616E-03   -.40655    
   3  Normalizat    1.0724        .22163        .51251E-04   -.90645    
   4  Prefactor     .77790        .23542        .12879E-04   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48468e-09
Minuit parameter uncertainties:
  1  28.1544
  2  0.674917
  3  0.221821
  4  0.235726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/879451': 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) = 6257.87715077
delta logL = 0.444329993965

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.434e+01  2.815e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.023e+00  6.749e-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:  7.779e-01  2.357e-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:  1.072e+00  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.81
Ra Dec: 172.380 30.579
Photon Index (Free Index): 3.02 +/- 0.67
Photon Flux (Free Index): 1.31e-07 +/- 7.15e-08
Energy Flux (Free Index): 2.58e-05 +/- 1.37e-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/879451/cmap_HighResolution_486604801_486864001_4FGL_J1129.5+3034_daily_bin954.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.65e-08', energy_flux2='2.58e-05', photon_flux_error='5.42e-08', dlogl='4.44e-01', energy_flux='2.94e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-04 01:52:27.735214', photon_index_error2='0.67', photon_index2='3.02', ts='4.93', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='1.12', time_epoch_completed='1630745547.74', return_code='0', job_id='879451', GAL2='0.78', EG2='1.07', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='7.15e-08', ts2='5.81', photon_index='2.46' WHERE bin_id='954' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:52:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 879451: <4FGL_J1129.5+3034_daily_bin954> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin954> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 01:36:02 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:36:14 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:36:14 2021
Terminated at Sat Sep  4 01:52:28 2021
Results reported at Sat Sep  4 01:52:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin954 172.38 30.5789 486604801 486864001 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 :                                   847.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            986 sec.

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

