/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 76 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 = 7389
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1129.5+3034_daily_bin76
RA = 172.38, Dec = 30.5789
tmin = 259027201, tmax = 259286401
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='873260', job_status='RUN', time_executed='2021-09-04 01:17:31.508023', time_epoch_executed='1630743451.51' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873260

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873260/ft1_4FGL_J1129.5+3034_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873260/ft2_4FGL_J1129.5+3034_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873260/ft1_4FGL_J1129.5+3034_daily_bin76.fits outfile=/scratch/kocevski/873260/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin76.fits ra=172.38 dec=30.5789 rad=12.0 tmin=259027201.0 tmax=259286401.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 1.52
user 1.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873260/ft2_4FGL_J1129.5+3034_daily_bin76.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/873260/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/873260/ft1_filtered_4FGL_J1129.5+3034_daily_bin76.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.51
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873260/ft1_filtered_4FGL_J1129.5+3034_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/873260/ft2_4FGL_J1129.5+3034_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/873260/ltcube_259027201_259286401_4FGL_J1129.5+3034_daily_bin76.fits outfile=/scratch/kocevski/873260/expmap_259027201_259286401_4FGL_J1129.5+3034_daily_bin76.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/873260/ltcube_259027201_259286401_4FGL_J1129.5+3034_daily_bin76.fits
.....................!
real 197.50
user 190.58
sys 5.08

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/873260/ft1_filtered_4FGL_J1129.5+3034_daily_bin76.fits scfile=/scratch/kocevski/873260/ft2_4FGL_J1129.5+3034_daily_bin76.fits outfile=/scratch/kocevski/873260/cmap_259027201_259286401_4FGL_J1129.5+3034_daily_bin76.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.56
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41596E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.969       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .63429       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9639       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.595       1.0000         .10000E-03   10000.    
     9 'norm      '    .81750E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .46833E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.557       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14326E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.831       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.2600       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3336       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.0935       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.6560       1.0000         .10000E-03   10000.    
    27 'norm      '    .12764E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.3510       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.1860       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.3252       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .74704       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0826       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=   5270.192     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4427 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    33.395       -.59354E-05** at limit **
   2  Prefactor     11.993        13.375       -.30280E-05   -.16359E-03
   3  Prefactor     16.969        11.957        .30792E-06   -.13026E-04
   4  Prefactor     .10000E-03    8.4707        .15138E-06** at limit **
   5  norm          .63430        .25639        .10259E-07    .20452E-03
   6  Prefactor     2.9640        2.3132       -.27301E-07   -.89945E-05
   7  Prefactor     .10000E-03    4.2446        .59081E-07** at limit **
   8  Prefactor     24.595        15.067        .18379E-06    .50382E-04
   9  norm          .10005E-03    6.8627        .18892E-05** at limit **
  10  Prefactor     .10000E-03    2.9722        .53210E-07** at limit **
  11  norm          .10003E-03    53.373       -.14809E-04** at limit **
  12  Prefactor     5.3381        9.1083       -.40255E-06    .25994E-04
  13  Prefactor     .10000E-03    .82250        .75262E-07** at limit **
  14  Prefactor     .10000E-03    11.302        .12482E-05** at limit **
  15  Prefactor     20.559        20.900        .57591E-07    .10101E-03
  16  norm          .10000E-03    .89633        .79702E-07** at limit **
  17  Prefactor     .10003E-03    16.816        .40684E-05** at limit **
  18  Prefactor     15.830        6.8763        .13248E-06    .31401E-04
  19  Prefactor     .10000E-03    66.079       -.55790E-06** at limit **
  20  norm          1.2618        .97393        .62985E-07    .13087E-03
  21  Prefactor     .10000E-03    13.118        .70192E-07** at limit **
  22  Prefactor     5.3334        2.3407        .14634E-08   -.95581E-04
  23  Prefactor     .10000E-03    20.453        .33389E-05** at limit **
  24  Prefactor     .10000E-03    20.512        .43548E-05** at limit **
  25  norm          4.0933        1.3486       -.16720E-08   -.23983E-03
  26  Prefactor     4.6506        32.801       -.31525E-05   -.23929E-04
  27  norm          .10003E-03    2.2436        .17296E-05** at limit **
  28  Prefactor     4.3516        7.1213        .75606E-06    .10092E-03
  29  Prefactor     2.1843        2.0564        .28388E-06   -.11476E-02
  30  Prefactor     6.3229        3.0039        .13830E-06    .22073E-03
  31  Normalizat    .74695        .18666       -.21433E-05   -.14217E-03
  32  Prefactor     1.0826        .20420       -.46966E-06   -.26999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100189
  Prefactor  = 11.9925
  Prefactor  = 16.969
  Prefactor  = 0.0001
  norm       = 0.6343
  Prefactor  = 2.96405
  Prefactor  = 0.0001
  Prefactor  = 24.5946
  norm       = 0.000100049
  Prefactor  = 0.0001
  norm       = 0.00010003
  Prefactor  = 5.33808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.559
  norm       = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 15.8296
  Prefactor  = 0.0001
  norm       = 1.26184
  Prefactor  = 0.0001
  Prefactor  = 5.33336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.09328
  Prefactor  = 4.65063
  norm       = 0.000100031
  Prefactor  = 4.35165
  Prefactor  = 2.18434
  Prefactor  = 6.32288
  Normalizat = 0.746946
  Prefactor  = 1.08256
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.192     FROM HESSE     STATUS=OK           669 CALLS     5096 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    252.77        .68425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.993        13.345        .11572E-03   -1.5015    
   3  Prefactor     16.969        11.951        .97228E-04   -1.4884    
   4  Prefactor     .10000E-03    8.4839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .63430        .25821        .22452E-04   -1.5549    
   6  Prefactor     2.9640        2.3097        .93384E-04   -1.5364    
   7  Prefactor     .10000E-03    4.2486        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.595        15.064        .80772E-04   -1.4716    
   9  norm          .10005E-03    15.132        .33711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0026        .12222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10003E-03    63.820        .40393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3381        9.0854        .17396E-03   -1.5246    
  13  Prefactor     .10000E-03    .83343        .64252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.559        20.678        .88340E-04   -1.4801    
  16  norm          .10000E-03    .90608        .67080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    66.385        .48956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.830        6.8700        .10066E-03   -1.4912    
  19  Prefactor     .10000E-03    66.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2618        .95479        .60273E-04   -1.5483    
  21  Prefactor     .10000E-03    13.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.3334        2.3404        .69926E-04   -1.5246    
  23  Prefactor     .10000E-03    20.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.0933        1.3481        .46533E-04   -1.5303    
  26  Prefactor     4.6506        32.500        .18651E-03   -1.5277    
  27  norm          .10003E-03    21.492        .17282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.3516        7.1295        .19310E-03   -1.5291    
  29  Prefactor     2.1843        2.0362        .47796E-03   -1.5412    
  30  Prefactor     6.3229        2.9579        .40848E-03   -1.5205    
  31  Normalizat    .74695        .21236        .26626E-03   -1.0207    
  32  Prefactor     1.0826        .23555        .26477E-03   -.90026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68833e-09
Minuit parameter uncertainties:
  1  0.0138733
  2  13.3485
  3  11.9527
  4  8.85436e-05
  5  0.25821
  6  2.30976
  7  9.17349e-06
  8  15.066
  9  0.00171935
  10  9.86524e-06
  11  0.00276081
  12  9.08778
  13  3.86471e-06
  14  3.91576e-05
  15  20.6849
  16  5.07723e-06
  17  0.00288598
  18  6.87036
  19  0.000173766
  20  0.954799
  21  5.15977e-05
  22  2.34048
  23  0.000190819
  24  0.000151125
  25  1.34806
  26  24.607
  27  0.00162247
  28  7.13089
  29  2.03628
  30  2.95801
  31  0.21259
  32  0.23578
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
614   Normalization:  7.469e-01  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 172.380 30.579
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/873260/likelihoodResults_259027201_259286401_4FGL_J1129.5+3034_daily_bin76.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) = 5268.69943377
delta logL = 1.49300879563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5268.64399641
delta logL = 1.54844615297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1735       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9515       1.0000          .0000       10.000    
     3 'Normalizat'    .67502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1350       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=   5268.644     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      307 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1702        31.974        .56873E-02    .28014E-03
   2  Index         3.9520        2.7367        .90722E-01    .13912E-03
   3  Normalizat    .67505        .65073E-01    .62957E-01    .14493E-04
   4  Prefactor     1.1349        .75545E-01    .58606E-01   -.13406E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17019
  Index      = 3.95201
  Normalizat = 0.675053
  Prefactor  = 1.13495
 **********
 **   18 **HESSE 
 **********

 FCN=   5268.644     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      340 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1702        49.709        .69320E-04   -1.5352    
   2  Index         3.9520        3.5833        .36346E-02   -.21116    
   3  Normalizat    .67505        .20198        .27853E-03   -1.0489    
   4  Prefactor     1.1349        .23671        .25915E-03   -.88357    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.26173e-07
Minuit parameter uncertainties:
  1  25.1313
  2  4.02187
  3  0.202198
  4  0.236929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873260': 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) = 5268.64399626
delta logL = 1.54844630723

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  3.170e+00  2.513e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.952e+00  4.022e+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.135e+00  2.369e-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:  6.751e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.64
Ra Dec: 172.380 30.579
Photon Index (Free Index): 3.95 +/- 4.02
Photon Flux (Free Index): 1.00e-07 +/- 5.73e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.33e-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/873260/cmap_HighResolution_259027201_259286401_4FGL_J1129.5+3034_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='1.51e-05', photon_flux_error='4.16e-08', dlogl='1.55e+00', energy_flux='1.26e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-04 01:32:32.872165', photon_index_error2='4.02', photon_index2='3.95', ts='1.33', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.33e-05', EG='0.75', time_epoch_completed='1630744352.87', return_code='0', job_id='873260', GAL2='1.13', EG2='0.68', return_code2='102', energy_flux_error='1.27e-05', photon_flux_error2='5.73e-08', ts2='4.64', photon_index='2.46' WHERE bin_id='76' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:32:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 873260: <4FGL_J1129.5+3034_daily_bin76> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin76> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 01:16:01 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:16:05 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:16:05 2021
Terminated at Sat Sep  4 01:32:33 2021
Results reported at Sat Sep  4 01:32:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin76 172.38 30.5789 259027201 259286401 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 :                                   898.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            992 sec.

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

