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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin672
RA = 172.38, Dec = 30.5789
tmin = 413510401, tmax = 413769601
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='877029', job_status='RUN', time_executed='2021-09-04 01:28:58.173978', time_epoch_executed='1630744138.17' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877029/ft1_4FGL_J1129.5+3034_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877029/ft2_4FGL_J1129.5+3034_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877029/ft1_4FGL_J1129.5+3034_daily_bin672.fits outfile=/scratch/kocevski/877029/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin672.fits ra=172.38 dec=30.5789 rad=12.0 tmin=413510401.0 tmax=413769601.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 5.58
user 5.28
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877029/ft1_filtered_4FGL_J1129.5+3034_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/877029/ft2_4FGL_J1129.5+3034_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/877029/ltcube_413510401_413769601_4FGL_J1129.5+3034_daily_bin672.fits outfile=/scratch/kocevski/877029/expmap_413510401_413769601_4FGL_J1129.5+3034_daily_bin672.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/877029/ltcube_413510401_413769601_4FGL_J1129.5+3034_daily_bin672.fits
.....................!
real 190.77
user 185.73
sys 4.45

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/877029/ft1_filtered_4FGL_J1129.5+3034_daily_bin672.fits scfile=/scratch/kocevski/877029/ft2_4FGL_J1129.5+3034_daily_bin672.fits outfile=/scratch/kocevski/877029/cmap_413510401_413769601_4FGL_J1129.5+3034_daily_bin672.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877029/ft1_filtered_4FGL_J1129.5+3034_daily_bin672.fits scfile=/scratch/kocevski/877029/ft2_4FGL_J1129.5+3034_daily_bin672.fits outfile=/scratch/kocevski/877029/cmap_HighResolution_413510401_413769601_4FGL_J1129.5+3034_daily_bin672.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.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45822E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0379       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.3654       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6713       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8676       1.0000         .10000E-03   10000.    
    16 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9063       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4332       1.0000         .10000E-03   10000.    
    19 'Prefactor '    109.03       1.0000         .10000E-03   10000.    
    20 'norm      '    5.9235       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0481       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    110.57       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    43.406       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.1954       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5026       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .27923       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=   5051.776     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     4367 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1041        .20038E-06** at limit **
   2  Prefactor     .10000E-03    12.042       -.76087E-06** at limit **
   3  Prefactor     8.0397        8.7988       -.11542E-06    .33928E-05
   4  Prefactor     .10000E-03    61.011        .90094E-05** at limit **
   5  norm          2.0772        .44314       -.15802E-07   -.39273E-03
   6  Prefactor     .10000E-03    1.6611       -.41153E-07** at limit **
   7  Prefactor     .10000E-03    8.0450       -.81767E-07** at limit **
   8  Prefactor     .10000E-03    35.290        .23745E-05** at limit **
   9  norm          9.3650        15.572       -.10591E-06   -.15960E-03
  10  Prefactor     1.6711        4.6610        .15141E-05   -.16538E-02
  11  norm          .10000E-03    6.9666       -.23317E-07** at limit **
  12  Prefactor     .10000E-03    12.615       -.73176E-06** at limit **
  13  Prefactor     .10000E-03    1.9564        .28183E-06** at limit **
  14  Prefactor     .10000E-03    22.339       -.16634E-05** at limit **
  15  Prefactor     3.8597        18.597        .74933E-06   -.27724E-03
  16  norm          .10000E-03    1.4827        .14101E-06** at limit **
  17  Prefactor     3.9109        11.630       -.57649E-06   -.29870E-04
  18  Prefactor     4.4331        5.9054       -.79821E-06   -.14036E-03
  19  Prefactor     109.00        67.926       -.14967E-04   -.11046E-03
  20  norm          5.9238        2.1503        .11201E-05   -.46570E-03
  21  Prefactor     .10000E-03    34.144        .58069E-05** at limit **
  22  Prefactor     1.0492        2.6034       -.35134E-06   -.31913E-03
  23  Prefactor     .10000E-03    15.805        .67449E-06** at limit **
  24  Prefactor     110.55        77.410       -.94739E-05   -.48087E-04
  25  norm          .10000E-03    .48229       -.14352E-07** at limit **
  26  Prefactor     .10000E-03    44.514       -.13712E-04** at limit **
  27  norm          43.415        9.3969        .53939E-08    .94172E-04
  28  Prefactor     .10000E-03    7.7528       -.17551E-06** at limit **
  29  Prefactor     1.1891        5.3836       -.10466E-06   -.15466E-03
  30  Prefactor     .10000E-03    1.0082       -.15157E-07** at limit **
  31  Normalizat    1.5028        .22951        .47631E-06   -.66044E-04
  32  Prefactor     .27894        .24992        .18795E-05   -.17532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.03965
  Prefactor  = 0.0001
  norm       = 2.07724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.36495
  Prefactor  = 1.67113
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85972
  norm       = 0.0001
  Prefactor  = 3.91092
  Prefactor  = 4.43309
  Prefactor  = 109.005
  norm       = 5.92377
  Prefactor  = 0.0001
  Prefactor  = 1.04917
  Prefactor  = 0.0001
  Prefactor  = 110.552
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 43.4145
  Prefactor  = 0.0001
  Prefactor  = 1.18914
  Prefactor  = 0.0001
  Normalizat = 1.50277
  Prefactor  = 0.278941
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.776     FROM HESSE     STATUS=OK           661 CALLS     5028 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    147.75        .47346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0397        8.7880        .14142E-03   -1.5141    
   4  Prefactor     .10000E-03    61.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0772        .44299        .21023E-04   -1.5420    
   6  Prefactor     .10000E-03    1.7191        .17870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.3650        15.523        .65478E-03   -1.5096    
  10  Prefactor     1.6711        11.540        .16304E-02   -1.5449    
  11  norm          .10000E-03    6.9994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3255        .18839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8597        19.280        .10259E-02   -1.5315    
  16  norm          .10000E-03    1.5084        .84429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9109        11.511        .20413E-03   -1.5312    
  18  Prefactor     4.4331        5.8222        .18679E-03   -1.5287    
  19  Prefactor     109.00        68.212        .19259E-03   -1.3616    
  20  norm          5.9238        2.1511        .52871E-04   -1.5221    
  21  Prefactor     .10000E-03    34.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0492        2.5609        .16622E-03   -1.5503    
  23  Prefactor     .10000E-03    15.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     110.55        77.441        .19126E-03   -1.3601    
  25  norm          .10000E-03    .49133        .48166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    44.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          43.415        8.9198        .60850E-04   -1.4389    
  28  Prefactor     .10000E-03    7.8253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.1891        4.8983        .26018E-03   -1.5490    
  30  Prefactor     .10000E-03    1.0104        .69681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5028        .24471        .21907E-03   -.77701    
  32  Prefactor     .27894        .24999        .25047E-02   -1.2352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39446e-08
Minuit parameter uncertainties:
  1  1.77988e-06
  2  0.000240968
  3  8.78944
  4  3.46961e-05
  5  0.442996
  6  4.53418e-06
  7  1.6187e-06
  8  2.61876e-05
  9  15.5302
  10  8.78507
  11  1.03053e-05
  12  2.80849e-05
  13  5.07266e-05
  14  5.25135e-06
  15  17.2614
  16  1.96039e-05
  17  11.5171
  18  5.8229
  19  68.2613
  20  2.15118
  21  6.3017e-05
  22  2.5612
  23  1.39047e-05
  24  77.5115
  25  1.10837e-06
  26  0.000301019
  27  8.92009
  28  5.66165e-06
  29  4.82736
  30  4.42577e-07
  31  0.244906
  32  0.250963
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  3.860e+00  1.726e+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:  2.789e-01  2.510e-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.503e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/877029/likelihoodResults_413510401_413769601_4FGL_J1129.5+3034_daily_bin672.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): 0
logL (Free Index) = 5048.80320035
delta logL = 2.9731941262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5048.74659947
delta logL = 3.02979500916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6363       1.0000         .10000E-03   10000.    
     2 'Index     '    .43926       1.0000          .0000       10.000    
     3 'Normalizat'    1.4913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29064       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.

 FCN=   5048.747     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      224 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6386        2.0320        .82608E-02   -.29242E-03
   2  Index         .43983        .39834        .23045       -.11927E-04
   3  Normalizat    1.4913        .22995        .49626E-01   -.69425E-05
   4  Prefactor     .29069        .24299        .11079        .50013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6386
  Index      = 0.439827
  Normalizat = 1.49126
  Prefactor  = 0.290687
 **********
 **   18 **HESSE 
 **********

 FCN=   5048.747     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6386        4.0021        .89358E-04   -1.5452    
   2  Index         .43983        .70622        .11003E-01   -1.1482    
   3  Normalizat    1.4913        .23461        .21937E-03   -.78024    
   4  Prefactor     .29069        .24707        .49123E-03   -1.2281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22156e-10
Minuit parameter uncertainties:
  1  4.00275
  2  0.720981
  3  0.234781
  4  0.247968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877029': 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) = 5048.74659917
delta logL = 3.02979531287

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.639e+00  4.003e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  4.398e-01  7.210e-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:  2.907e-01  2.480e-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.491e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 172.380 30.579
Photon Index (Free Index): 0.44 +/- 0.72
Photon Flux (Free Index): 3.79e-09 +/- 3.88e-09
Energy Flux (Free Index): 1.39e-04 +/- 1.67e-04

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/877029/cmap_HighResolution_413510401_413769601_4FGL_J1129.5+3034_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', comment='SUCCESS', energy_flux2='1.39e-04', dlogl='3.03e+00', photon_flux2='3.79e-09', job_status='DONE', time_completed='2021-09-04 01:43:36.776079', photon_index_error2='0.72', photon_index2='0.44', ts='0.07', fit_tolerance='1e-08', GAL='0.28', photon_index_error='0.00', photon_flux_upper_limit='9.73e-08', energy_flux_error2='1.67e-04', EG='1.50', time_epoch_completed='1630745016.78', return_code='0', job_id='877029', GAL2='0.29', EG2='1.49', return_code2='0', photon_flux_error2='3.88e-09', ts2='6.13', photon_index='2.46' WHERE bin_id='672' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:43:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 877029: <4FGL_J1129.5+3034_daily_bin672> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin672> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 01:27:08 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:28:44 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:44 2021
Terminated at Sat Sep  4 01:43:37 2021
Results reported at Sat Sep  4 01:43:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin672 172.38 30.5789 413510401 413769601 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 :                                   870.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            989 sec.

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

