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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin714
RA = 172.38, Dec = 30.5789
tmin = 424396801, tmax = 424656001
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='877071', job_status='RUN', time_executed='2021-09-04 01:29:12.240033', time_epoch_executed='1630744152.24' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877071/ft1_4FGL_J1129.5+3034_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877071/ft2_4FGL_J1129.5+3034_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877071/ft1_4FGL_J1129.5+3034_daily_bin714.fits outfile=/scratch/kocevski/877071/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin714.fits ra=172.38 dec=30.5789 rad=12.0 tmin=424396801.0 tmax=424656001.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.12
user 4.88
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877071/ft2_4FGL_J1129.5+3034_daily_bin714.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/877071/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin714.fits evtable="EVENTS" outfile="/scratch/kocevski/877071/ft1_filtered_4FGL_J1129.5+3034_daily_bin714.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877071/ft1_filtered_4FGL_J1129.5+3034_daily_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/877071/ft2_4FGL_J1129.5+3034_daily_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/877071/ltcube_424396801_424656001_4FGL_J1129.5+3034_daily_bin714.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/877071/ft2_4FGL_J1129.5+3034_daily_bin714.fits
.....................!
real 13.99
user 13.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877071/ft1_filtered_4FGL_J1129.5+3034_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/877071/ft2_4FGL_J1129.5+3034_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/877071/ltcube_424396801_424656001_4FGL_J1129.5+3034_daily_bin714.fits outfile=/scratch/kocevski/877071/expmap_424396801_424656001_4FGL_J1129.5+3034_daily_bin714.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/877071/ltcube_424396801_424656001_4FGL_J1129.5+3034_daily_bin714.fits
.....................!
real 191.22
user 185.74
sys 4.92

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/877071/ft1_filtered_4FGL_J1129.5+3034_daily_bin714.fits scfile=/scratch/kocevski/877071/ft2_4FGL_J1129.5+3034_daily_bin714.fits outfile=/scratch/kocevski/877071/cmap_424396801_424656001_4FGL_J1129.5+3034_daily_bin714.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877071/ft1_filtered_4FGL_J1129.5+3034_daily_bin714.fits scfile=/scratch/kocevski/877071/ft2_4FGL_J1129.5+3034_daily_bin714.fits outfile=/scratch/kocevski/877071/cmap_HighResolution_424396801_424656001_4FGL_J1129.5+3034_daily_bin714.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11354E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13824E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10818E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .52586E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .81610       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3912       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21135E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12265E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .16218E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96208E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.687       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.872       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16437E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21665E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    83.023       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.381       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80936       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16113E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    13.952       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25118E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13390E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17317E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .76585E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    5.7240       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .82883E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10649E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .49638E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    14.126       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3745       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .66725E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1238.743     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     3119 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    14.234        .28989E-04** at limit **
   2  Prefactor     .10000E-03    9.6357       -.15048E-05** at limit **
   3  Prefactor     .10000E-03    8.1939        .21123E-05** at limit **
   4  Prefactor     .10000E-03    16.017        .28511E-05** at limit **
   5  norm          .81600        .46771       -.40230E-07   -.37182E-04
   6  Prefactor     3.4119        5.7350       -.95471E-06   -.51406E-04
   7  Prefactor     .10001E-03    32.974       -.30946E-04** at limit **
   8  Prefactor     .10000E-03    15.723       -.22728E-05** at limit **
   9  norm          .10000E-03    16.347        .53052E-05** at limit **
  10  Prefactor     .10000E-03    5.3830       -.31113E-06** at limit **
  11  norm          12.965        8.8995        .60644E-05   -.33585E-02
  12  Prefactor     11.823        1.6800       -.43998E-06    .31720E-03
  13  Prefactor     .10000E-03    3.2128        .49810E-06** at limit **
  14  Prefactor     .10007E-03    36.050        .53796E-04** at limit **
  15  Prefactor     75.880        84.774        .10520E-04   -.96957E-03
  16  norm          .10000E-03    2.5054        .25544E-06** at limit **
  17  Prefactor     33.723        60.203       -.78308E-05   -.10935E-02
  18  Prefactor     1.0070        27.162       -.11115E-04   -.52814E-04
  19  Prefactor     .10001E-03    75.227        .37448E-04** at limit **
  20  norm          13.978        5.0243        .13735E-05   -.59092E-03
  21  Prefactor     .10013E-03    25.895       -.14038E-04** at limit **
  22  Prefactor     .10000E-03    3.0900       -.29459E-06** at limit **
  23  Prefactor     .10004E-03    20.456        .37491E-04** at limit **
  24  Prefactor     .10018E-03    147.92       -.92162E-05** at limit **
  25  norm          5.7321        4.2008        .69231E-06    .91330E-04
  26  Prefactor     .10007E-03    30.001       -.61682E-04** at limit **
  27  norm          .10000E-03    4.1572       -.25848E-06** at limit **
  28  Prefactor     .10000E-03    12.555       -.30920E-05** at limit **
  29  Prefactor     .10000E-03    3.5176       -.83095E-08** at limit **
  30  Prefactor     14.051        10.584       -.10837E-04   -.46176E-03
  31  Normalizat    1.3755        .20477       -.30850E-05    .14460E-04
  32  Prefactor     .21039E-12    .36325        .61333E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.815996
  Prefactor  = 3.41192
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9648
  Prefactor  = 11.8226
  Prefactor  = 0.0001
  Prefactor  = 0.000100068
  Prefactor  = 75.8804
  norm       = 0.0001
  Prefactor  = 33.7234
  Prefactor  = 1.00703
  Prefactor  = 0.000100009
  norm       = 13.9785
  Prefactor  = 0.000100128
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 0.00010018
  norm       = 5.7321
  Prefactor  = 0.000100067
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0514
  Normalizat = 1.37555
  Prefactor  = 2.10387e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   1238.743     FROM HESSE     STATUS=OK           713 CALLS     3832 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    35.102        .10338E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6336        .10267E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1912        .10355E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.016        .10566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .81600        .46590        .39981E-02   -1.5527    
   6  Prefactor     3.4119        5.7653        .54927E-02   -1.5339    
   7  Prefactor     .10001E-03    33.174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3844        .10394E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.965        29.182        .28114E-02   -1.4988    
  12  Prefactor     11.823        22.900        .29066E-02   -1.5020    
  13  Prefactor     .10000E-03    3.1994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10007E-03    42.442        .91309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     75.880        84.869        .11021E-02   -1.3964    
  16  norm          .10000E-03    2.5013        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.723        60.285        .18173E-02   -1.4546    
  18  Prefactor     1.0070        26.640        .12475E-01   -1.5507    
  19  Prefactor     .10001E-03    75.393        .91034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.978        5.0215        .26808E-02   -1.4960    
  21  Prefactor     .10013E-03    46.073        .91479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    32.563        .10177E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10018E-03    148.67        .93990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.7321        4.2028        .41972E-02   -1.5229    
  26  Prefactor     .10007E-03    50.260        .92078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.1553        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.557        .10581E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.5180        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     14.051        10.693        .26642E-02   -1.4958    
  31  Normalizat    1.3755        .24470        .31589E-01   -.81339    
  32  Prefactor     .21039E-12    .29811        .17987       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70148e-08
Minuit parameter uncertainties:
  1  0.00185239
  2  0.00012391
  3  0.000137137
  4  0.000154858
  5  0.465902
  6  5.76628
  7  0.000976859
  8  9.83514e-05
  9  5.58946e-05
  10  1.59966e-05
  11  29.2141
  12  22.917
  13  3.82436e-05
  14  0.00339852
  15  85.0052
  16  1.71568e-06
  17  60.3946
  18  10.3636
  19  0.00167232
  20  5.02161
  21  0.00485442
  22  1.55249e-06
  23  0.00215382
  24  0.0103792
  25  4.20297
  26  0.00367329
  27  2.77989e-06
  28  8.48944e-05
  29  6.64865e-07
  30  10.6948
  31  0.244907
  32  5.03503e-07
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  7.588e+01  8.501e+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.104e-13  5.035e-07  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.376e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 172.380 30.579
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 1.71e-07
Energy Flux (Fixed Index): 4.66e-05 +/- 5.22e-05

TS (Fixed Index): 2.17
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 4.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/877071/likelihoodResults_424396801_424656001_4FGL_J1129.5+3034_daily_bin714.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) = 1237.57827101
delta logL = 1.16430421465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1236.95417015
delta logL = 1.78840507707

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 'Index     '    9.3006       1.0000          .0000       10.000    
     3 'Normalizat'    1.3653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .15469E-06   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=   1236.954     FROM MIGRAD    STATUS=CONVERGED    390 CALLS      779 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10512E-01    .18237E-03** at limit **
   2  Index         9.3006        8.1531        .84113E-01    .73057E-04
   3  Normalizat    1.3654        .15489        .31727E-01   -.16716E-04
   4  Prefactor     .16423E-09    .18323        .21056    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.30062
  Normalizat = 1.36537
  Prefactor  = 1.64228e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   1236.954     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      816 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .10264E-01    .20265E-03   -152.37    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.3006        8.3397        .37410E-03   -1789.7    
   3  Normalizat    1.3654        .15533        .18662E-03   -21.175    
   4  Prefactor     .16423E-09    .64942        .11248E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.99543e-09
Minuit parameter uncertainties:
  1  1.12533e-07
  2  3.90559
  3  0.155387
  4  2.0885e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877071': 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) = 1236.95416714
delta logL = 1.78840808427

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.125e-07  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  9.301e+00  3.906e+00  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.642e-10  2.088e-05  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.365e+00  1.554e-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): 9.30 +/- 3.91
Photon Flux (Free Index): 2.70e-07 +/- 2.25e-06
Energy Flux (Free Index): 3.05e-05 +/- 2.54e-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/877071/cmap_HighResolution_424396801_424656001_4FGL_J1129.5+3034_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-02', comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='3.05e-05', photon_flux_error='1.71e-07', dlogl='1.79e+00', energy_flux='4.66e-05', photon_flux2='2.70e-07', job_status='DONE', time_completed='2021-09-04 01:37:00.133302', photon_index_error2='3.91', photon_index2='9.30', ts='2.17', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='4.33e-07', energy_flux_error2='2.54e-04', EG='1.38', time_epoch_completed='1630744620.13', return_code='0', job_id='877071', GAL2='0.00', EG2='1.37', return_code2='102', energy_flux_error='5.22e-05', photon_flux_error2='2.25e-06', ts2='5.81', photon_index='2.46' WHERE bin_id='714' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:37:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 877071: <4FGL_J1129.5+3034_daily_bin714> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin714 172.38 30.5789 424396801 424656001 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 :                                   458.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   487 sec.
    Turnaround time :                            588 sec.

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

