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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin39
RA = 172.38, Dec = 30.5789
tmin = 249436801, tmax = 249696001
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='872164', job_status='RUN', time_executed='2021-09-04 01:13:22.974841', time_epoch_executed='1630743202.97' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872164/ft1_4FGL_J1129.5+3034_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872164/ft2_4FGL_J1129.5+3034_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872164/ft1_4FGL_J1129.5+3034_daily_bin39.fits outfile=/scratch/kocevski/872164/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin39.fits ra=172.38 dec=30.5789 rad=12.0 tmin=249436801.0 tmax=249696001.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.54
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872164/ft1_filtered_4FGL_J1129.5+3034_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/872164/ft2_4FGL_J1129.5+3034_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/872164/ltcube_249436801_249696001_4FGL_J1129.5+3034_daily_bin39.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/872164/ft2_4FGL_J1129.5+3034_daily_bin39.fits
.....................!
real 18.17
user 17.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872164/ft1_filtered_4FGL_J1129.5+3034_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/872164/ft2_4FGL_J1129.5+3034_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/872164/ltcube_249436801_249696001_4FGL_J1129.5+3034_daily_bin39.fits outfile=/scratch/kocevski/872164/expmap_249436801_249696001_4FGL_J1129.5+3034_daily_bin39.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/872164/ltcube_249436801_249696001_4FGL_J1129.5+3034_daily_bin39.fits
.....................!
real 193.81
user 186.95
sys 4.62

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/872164/ft1_filtered_4FGL_J1129.5+3034_daily_bin39.fits scfile=/scratch/kocevski/872164/ft2_4FGL_J1129.5+3034_daily_bin39.fits outfile=/scratch/kocevski/872164/cmap_249436801_249696001_4FGL_J1129.5+3034_daily_bin39.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872164/ft1_filtered_4FGL_J1129.5+3034_daily_bin39.fits scfile=/scratch/kocevski/872164/ft2_4FGL_J1129.5+3034_daily_bin39.fits outfile=/scratch/kocevski/872164/cmap_HighResolution_249436801_249696001_4FGL_J1129.5+3034_daily_bin39.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4785       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.6158       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.168       1.0000         .10000E-03   10000.    
    11 'norm      '    9.9537       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13114E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10089E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.111       1.0000         .10000E-03   10000.    
    16 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .65896E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .38491       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.042       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .76932       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.550       1.0000         .10000E-03   10000.    
    25 'norm      '    4.2088       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.6240       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.8391       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.9838       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.2289       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96601       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .90614       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=   5135.956     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     3772 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6034        .31273E-06** at limit **
   2  Prefactor     .10000E-03    4.6737        .73317E-06** at limit **
   3  Prefactor     .10000E-03    10.496        .90473E-07** at limit **
   4  Prefactor     2.4777        23.395        .21853E-06   -.26535E-03
   5  norm          1.6181        .37808       -.17637E-08    .30780E-03
   6  Prefactor     .10000E-03    .84483        .56780E-09** at limit **
   7  Prefactor     .10000E-03    4.5305       -.30157E-06** at limit **
   8  Prefactor     .10000E-03    4.7499       -.46586E-06** at limit **
   9  norm          8.6146        9.0660        .13811E-06    .32480E-04
  10  Prefactor     21.169        9.5559       -.77311E-07   -.90302E-05
  11  norm          9.9570        12.344        .79104E-06   -.11545E-04
  12  Prefactor     2.1890        5.1755        .23350E-06   -.10945E-02
  13  Prefactor     .10000E-03    1.5668        .19704E-06** at limit **
  14  Prefactor     .10000E-03    198.16       -.27642E-04** at limit **
  15  Prefactor     39.111        20.017        .85620E-07    .34953E-04
  16  norm          .10000E-03    1.4409        .44884E-07** at limit **
  17  Prefactor     .10000E-03    4.1190        .31232E-07** at limit **
  18  Prefactor     .10001E-03    2.7442       -.35734E-06** at limit **
  19  Prefactor     .10000E-03    42.879       -.91606E-06** at limit **
  20  norm          .38617        .89418       -.20126E-06   -.27856E-03
  21  Prefactor     11.079        21.302       -.10821E-04   -.18267E-03
  22  Prefactor     .76332        2.4345        .21469E-05    .48974E-03
  23  Prefactor     .10000E-03    7.4753       -.75678E-07** at limit **
  24  Prefactor     37.562        37.702        .60261E-05    .34386E-04
  25  norm          4.2088        1.5357        .20095E-06   -.11154E-03
  26  Prefactor     .10000E-03    21.575        .13328E-06** at limit **
  27  norm          1.6240        3.2689        .10455E-06   -.79123E-04
  28  Prefactor     2.8392        6.6707        .17444E-06   -.85018E-03
  29  Prefactor     4.9839        2.7362       -.30276E-07    .31679E-05
  30  Prefactor     7.2293        3.2344       -.27775E-07   -.26582E-04
  31  Normalizat    .96593        .18683        .82481E-06   -.16181E-04
  32  Prefactor     .90610        .20499       -.78465E-06    .58806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47774
  norm       = 1.61805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.61459
  Prefactor  = 21.1691
  norm       = 9.957
  Prefactor  = 2.18902
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 39.1112
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.38617
  Prefactor  = 11.079
  Prefactor  = 0.763324
  Prefactor  = 0.0001
  Prefactor  = 37.5617
  norm       = 4.20878
  Prefactor  = 0.0001
  norm       = 1.62397
  Prefactor  = 2.83917
  Prefactor  = 4.98391
  Prefactor  = 7.22929
  Normalizat = 0.965926
  Prefactor  = 0.9061
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.956     FROM HESSE     STATUS=OK           665 CALLS     4437 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6766        .15126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4777        27.141        .12985E-02   -1.5393    
   5  norm          1.6181        .37893        .20623E-04   -1.5454    
   6  Prefactor     .10000E-03    .84872        .64308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5354        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7510        .15253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.6146        9.0609        .13656E-03   -1.5121    
  10  Prefactor     21.169        9.5797        .87057E-04   -1.4787    
  11  norm          9.9570        12.344        .12701E-03   -1.5077    
  12  Prefactor     2.1890        7.1444        .13914E-02   -1.5412    
  13  Prefactor     .10000E-03    2.5664        .17138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    200.73        .41513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     39.111        20.011        .64091E-04   -1.4456    
  16  norm          .10000E-03    1.4844        .16766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1217        .14201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    12.774        .22591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .38617        .84907        .97197E-03   -1.5584    
  21  Prefactor     11.079        21.296        .12056E-03   -1.5042    
  22  Prefactor     .76332        2.4068        .17064E-03   -1.5533    
  23  Prefactor     .10000E-03    7.4800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.562        37.464        .65405E-04   -1.4481    
  25  norm          4.2088        1.5357        .50730E-04   -1.5298    
  26  Prefactor     .10000E-03    21.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.6240        3.2382        .16390E-03   -1.5453    
  28  Prefactor     2.8392        7.9099        .12067E-02   -1.5371    
  29  Prefactor     4.9839        2.7315        .80307E-04   -1.5261    
  30  Prefactor     7.2293        3.2253        .81647E-04   -1.5170    
  31  Normalizat    .96593        .21764        .24141E-03   -.94181    
  32  Prefactor     .90610        .23993        .28596E-03   -.95928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08722e-08
Minuit parameter uncertainties:
  1  1.655e-08
  2  1.51606e-06
  3  3.60706e-06
  4  16.4101
  5  0.378926
  6  4.51735e-07
  7  1.44898e-06
  8  1.50954e-06
  9  9.06234
  10  9.58038
  11  12.3469
  12  7.1472
  13  2.55378e-05
  14  0.000913808
  15  20.014
  16  4.78483e-06
  17  2.84944e-06
  18  0.000531478
  19  2.47103e-05
  20  0.849094
  21  21.3107
  22  2.4071
  23  2.19586e-06
  24  37.487
  25  1.53574
  26  6.11379e-07
  27  3.23857
  28  7.91284
  29  2.73161
  30  3.22538
  31  0.217842
  32  0.240215
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  3.911e+01  2.001e+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.061e-01  2.402e-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.659e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.43
Ra Dec: 172.380 30.579
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 7.88e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.23e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5135.89768075
delta logL = 0.0580667401464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5135.88570659
delta logL = 0.0700409066067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.209       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2890       1.0000          .0000       10.000    
     3 'Normalizat'    .97567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89992       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5135.886     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.207        28.392        .59629E-04    .63965E-03
   2  Index         2.2895        .45153        .53036E-02    .24693E-03
   3  Normalizat    .97554        .20894        .24039E-03   -.10835E-03
   4  Prefactor     .89994        .23846        .28686E-03   -.11311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.2072
  Index      = 2.28951
  Normalizat = 0.975543
  Prefactor  = 0.899942
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.886     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.207        27.775        .11926E-04   -1.4362    
   2  Index         2.2895        .44149        .21214E-03   -.57293    
   3  Normalizat    .97554        .20908        .96157E-05   -.93854    
   4  Prefactor     .89994        .23865        .11475E-04   -.96143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92018e-10
Minuit parameter uncertainties:
  1  27.7828
  2  0.442311
  3  0.209258
  4  0.238929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872164': 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) = 5135.88570549
delta logL = 0.0700420042267

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  4.521e+01  2.778e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.290e+00  4.423e-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:  8.999e-01  2.389e-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.755e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.50
Ra Dec: 172.380 30.579
Photon Index (Free Index): 2.29 +/- 0.44
Photon Flux (Free Index): 6.98e-08 +/- 4.45e-08
Energy Flux (Free Index): 2.69e-05 +/- 1.69e-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/872164/cmap_HighResolution_249436801_249696001_4FGL_J1129.5+3034_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.88e-08', energy_flux2='2.69e-05', photon_flux_error='4.03e-08', dlogl='7.00e-02', energy_flux='2.40e-05', photon_flux2='6.98e-08', job_status='DONE', time_completed='2021-09-04 01:25:31.130294', photon_index_error2='0.44', photon_index2='2.29', ts='9.43', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='0.97', time_epoch_completed='1630743931.13', return_code='0', job_id='872164', GAL2='0.90', EG2='0.98', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.45e-08', ts2='9.50', photon_index='2.46' WHERE bin_id='39' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:25:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 872164: <4FGL_J1129.5+3034_daily_bin39> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin39> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 01:11:36 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:12:24 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:12:24 2021
Terminated at Sat Sep  4 01:25:31 2021
Results reported at Sat Sep  4 01:25:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin39 172.38 30.5789 249436801 249696001 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 :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            835 sec.

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

