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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin519
RA = 172.38, Dec = 30.5789
tmin = 373852801, tmax = 374112001
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='876861', job_status='RUN', time_executed='2021-09-04 01:27:42.142354', time_epoch_executed='1630744062.14' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/876861

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/876861/ft1_4FGL_J1129.5+3034_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/876861/ft2_4FGL_J1129.5+3034_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/876861/ft1_4FGL_J1129.5+3034_daily_bin519.fits outfile=/scratch/kocevski/876861/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin519.fits ra=172.38 dec=30.5789 rad=12.0 tmin=373852801.0 tmax=374112001.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.73
user 3.48
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/876861/ft1_filtered_4FGL_J1129.5+3034_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/876861/ft2_4FGL_J1129.5+3034_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/876861/ltcube_373852801_374112001_4FGL_J1129.5+3034_daily_bin519.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/876861/ft2_4FGL_J1129.5+3034_daily_bin519.fits
.....................!
real 14.14
user 13.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/876861/ft1_filtered_4FGL_J1129.5+3034_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/876861/ft2_4FGL_J1129.5+3034_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/876861/ltcube_373852801_374112001_4FGL_J1129.5+3034_daily_bin519.fits outfile=/scratch/kocevski/876861/expmap_373852801_374112001_4FGL_J1129.5+3034_daily_bin519.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/876861/ltcube_373852801_374112001_4FGL_J1129.5+3034_daily_bin519.fits
.....................!
real 155.96
user 151.49
sys 4.06

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/876861/ft1_filtered_4FGL_J1129.5+3034_daily_bin519.fits scfile=/scratch/kocevski/876861/ft2_4FGL_J1129.5+3034_daily_bin519.fits outfile=/scratch/kocevski/876861/cmap_373852801_374112001_4FGL_J1129.5+3034_daily_bin519.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.32
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/876861/ft1_filtered_4FGL_J1129.5+3034_daily_bin519.fits scfile=/scratch/kocevski/876861/ft2_4FGL_J1129.5+3034_daily_bin519.fits outfile=/scratch/kocevski/876861/cmap_HighResolution_373852801_374112001_4FGL_J1129.5+3034_daily_bin519.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.53
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0508       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.311       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.948       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2485       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13367E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .20227E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2709       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.414       1.0000         .10000E-03   10000.    
    16 'norm      '    .10260E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.530       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9374       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .58540       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.814       1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.223       1.0000         .10000E-03   10000.    
    25 'norm      '    .80140       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.2668       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.4310       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.1796       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .99037       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .91590       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=   5917.417     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4401 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0509        12.577        .19714E-06    .72163E-05
   2  Prefactor     .10000E-03    2.8081       -.15108E-08** at limit **
   3  Prefactor     15.320        11.035        .10954E-06    .36118E-04
   4  Prefactor     19.952        17.723        .69605E-07    .17397E-04
   5  norm          2.2484        .39944        .72870E-08    .25257E-04
   6  Prefactor     .10000E-03    1.8896       -.34167E-07** at limit **
   7  Prefactor     .10000E-03    7.4099        .14697E-07** at limit **
   8  Prefactor     .10000E-03    15.119        .28101E-07** at limit **
   9  norm          .10000E-03    24.608        .31115E-06** at limit **
  10  Prefactor     .10000E-03    2.2068        .27283E-08** at limit **
  11  norm          .10269E-03    8.4142       -.16650E-05** at limit **
  12  Prefactor     .10000E-03    4.5319        .10368E-07** at limit **
  13  Prefactor     1.2707        1.4232        .15805E-07    .30807E-05
  14  Prefactor     .10000E-03    17.958       -.65012E-07** at limit **
  15  Prefactor     17.420        24.544        .14396E-06    .50839E-04
  16  norm          .10000E-03    1.1583       -.82060E-07** at limit **
  17  Prefactor     13.528        15.586        .32501E-07    .48624E-04
  18  Prefactor     5.9370        4.7760        .54936E-07   -.23858E-04
  19  Prefactor     .10000E-03    62.164        .90860E-06** at limit **
  20  norm          .58598        1.0630        .67989E-06    .54718E-03
  21  Prefactor     12.647        14.651        .10180E-06    .37246E-04
  22  Prefactor     .10000E-03    .82160        .11801E-07** at limit **
  23  Prefactor     15.816        23.631       -.73035E-06   -.30880E-04
  24  Prefactor     48.207        42.357       -.68020E-06   -.50392E-04
  25  norm          .80143        .70459       -.67527E-08   -.20835E-04
  26  Prefactor     .10000E-03    46.581       -.10976E-05** at limit **
  27  norm          3.2668        2.6116        .52930E-06    .26683E-03
  28  Prefactor     1.4311        7.9584        .23231E-05    .12252E-03
  29  Prefactor     5.1797        2.7002       -.15117E-06    .12757E-04
  30  Prefactor     .10000E-03    .77147       -.23698E-07** at limit **
  31  Normalizat    .99024        .17976       -.20435E-06    .16625E-03
  32  Prefactor     .91605        .19575       -.28815E-06    .10939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.05091
  Prefactor  = 0.0001
  Prefactor  = 15.3202
  Prefactor  = 19.9516
  norm       = 2.24841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000102691
  Prefactor  = 0.0001
  Prefactor  = 1.27072
  Prefactor  = 0.0001
  Prefactor  = 17.42
  norm       = 0.0001
  Prefactor  = 13.5283
  Prefactor  = 5.93702
  Prefactor  = 0.000100001
  norm       = 0.585982
  Prefactor  = 12.647
  Prefactor  = 0.0001
  Prefactor  = 15.8155
  Prefactor  = 48.2067
  norm       = 0.801432
  Prefactor  = 0.000100002
  norm       = 3.26682
  Prefactor  = 1.43115
  Prefactor  = 5.17971
  Prefactor  = 0.0001
  Normalizat = 0.990239
  Prefactor  = 0.916049
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.417     FROM HESSE     STATUS=OK           677 CALLS     5078 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0509        12.568        .16322E-03   -1.5216    
   2  Prefactor     .10000E-03    2.8089        .12589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.320        10.753        .10236E-03   -1.4925    
   4  Prefactor     19.952        17.745        .89677E-04   -1.4814    
   5  norm          2.2484        .39972        .19811E-04   -1.5408    
   6  Prefactor     .10000E-03    4.1269        .19831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    25.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2106        .11159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10269E-03    11.525        .64370E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5465        .15992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2707        1.4077        .93250E-04   -1.5483    
  14  Prefactor     .10000E-03    17.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.420        24.481        .95978E-04   -1.4873    
  16  norm          .10000E-03    1.8829        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.528        15.530        .10889E-03   -1.4972    
  18  Prefactor     5.9370        4.7669        .14177E-03   -1.5221    
  19  Prefactor     .10000E-03    63.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .58598        1.0526        .97763E-04   -1.5555    
  21  Prefactor     12.647        14.633        .11264E-03   -1.4997    
  22  Prefactor     .10000E-03    .83993        .13585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.816        23.759        .10072E-03   -1.4912    
  24  Prefactor     48.207        42.191        .28872E-03   -1.4318    
  25  norm          .80143        .68108        .58567E-03   -1.5529    
  26  Prefactor     .10000E-03    47.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.2668        2.6095        .51086E-03   -1.5346    
  28  Prefactor     1.4311        7.9136        .36110E-03   -1.5469    
  29  Prefactor     5.1797        2.7063        .84188E-04   -1.5253    
  30  Prefactor     .10000E-03    .77735        .65950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .99024        .21403        .23772E-03   -.93358    
  32  Prefactor     .91605        .23250        .28675E-03   -.95583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54672e-09
Minuit parameter uncertainties:
  1  12.5737
  2  2.47161e-07
  3  10.7545
  4  17.7497
  5  0.399721
  6  3.00515e-05
  7  1.20637e-06
  8  4.59717e-06
  9  7.90876e-05
  10  7.96376e-07
  11  0.0111407
  12  2.72902e-06
  13  1.40769
  14  2.33621e-05
  15  24.4954
  16  2.33799e-05
  17  15.5342
  18  4.76716
  19  0.000516985
  20  1.0526
  21  14.6372
  22  1.09111e-06
  23  23.7727
  24  42.2172
  25  0.681087
  26  0.00055765
  27  2.60956
  28  6.73182
  29  2.70631
  30  1.17866e-06
  31  0.214214
  32  0.232748
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.742e+01  2.450e+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:  9.160e-01  2.327e-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:  9.902e-01  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/876861/likelihoodResults_373852801_374112001_4FGL_J1129.5+3034_daily_bin519.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) = 5916.24158915
delta logL = 1.17541992979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5916.1922398
delta logL = 1.22476927926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6112       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2927       1.0000          .0000       10.000    
     3 'Normalizat'    .89678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99224       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=   5916.192     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      261 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6079        14.293        .83424E-02    .41447E-03
   2  Index         4.2937        2.4263        .98751E-01    .14035E-03
   3  Normalizat    .89682        .50357E-01    .44860E-01   -.18865E-04
   4  Prefactor     .99227        .58482E-01    .46170E-01   -.14487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60791
  Index      = 4.29373
  Normalizat = 0.896821
  Prefactor  = 0.992272
 **********
 **   18 **HESSE 
 **********

 FCN=   5916.192     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6079        27.650        .55788E-04   -1.5454    
   2  Index         4.2937        3.6758        .37762E-02   -.14173    
   3  Normalizat    .89682        .18787        .24793E-03   -.96572    
   4  Prefactor     .99227        .21624        .27655E-03   -.92988    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17535e-07
Minuit parameter uncertainties:
  1  13.3422
  2  4.14285
  3  0.188007
  4  0.21643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/876861': 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) = 5916.19223935
delta logL = 1.22476972929

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.608e+00  1.334e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  4.294e+00  4.143e+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:  9.923e-01  2.164e-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:  8.968e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 172.380 30.579
Photon Index (Free Index): 4.29 +/- 4.14
Photon Flux (Free Index): 1.00e-07 +/- 6.08e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.13e-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/876861/cmap_HighResolution_373852801_374112001_4FGL_J1129.5+3034_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='1.22e+00', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-04 01:41:07.534850', photon_index_error2='4.14', photon_index2='4.29', ts='0.88', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.13e-05', EG='0.99', time_epoch_completed='1630744867.53', return_code='0', job_id='876861', GAL2='0.99', EG2='0.90', return_code2='102', photon_flux_error2='6.08e-08', ts2='3.60', photon_index='2.46' WHERE bin_id='519' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:41:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 876861: <4FGL_J1129.5+3034_daily_bin519> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin519 172.38 30.5789 373852801 374112001 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 :                                   799.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            858 sec.

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

