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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin72
RA = 172.38, Dec = 30.5789
tmin = 257990401, tmax = 258249601
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='873256', job_status='RUN', time_executed='2021-09-04 01:16:42.313109', time_epoch_executed='1630743402.31' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873256

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873256/ft1_4FGL_J1129.5+3034_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873256/ft2_4FGL_J1129.5+3034_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873256/ft1_4FGL_J1129.5+3034_daily_bin72.fits outfile=/scratch/kocevski/873256/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin72.fits ra=172.38 dec=30.5789 rad=12.0 tmin=257990401.0 tmax=258249601.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.45
user 1.27
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873256/ft1_filtered_4FGL_J1129.5+3034_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/873256/ft2_4FGL_J1129.5+3034_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/873256/ltcube_257990401_258249601_4FGL_J1129.5+3034_daily_bin72.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/873256/ft2_4FGL_J1129.5+3034_daily_bin72.fits
.....................!
real 19.09
user 18.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873256/ft1_filtered_4FGL_J1129.5+3034_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/873256/ft2_4FGL_J1129.5+3034_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/873256/ltcube_257990401_258249601_4FGL_J1129.5+3034_daily_bin72.fits outfile=/scratch/kocevski/873256/expmap_257990401_258249601_4FGL_J1129.5+3034_daily_bin72.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/873256/ltcube_257990401_258249601_4FGL_J1129.5+3034_daily_bin72.fits
.....................!
real 192.52
user 187.52
sys 4.07

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/873256/ft1_filtered_4FGL_J1129.5+3034_daily_bin72.fits scfile=/scratch/kocevski/873256/ft2_4FGL_J1129.5+3034_daily_bin72.fits outfile=/scratch/kocevski/873256/cmap_257990401_258249601_4FGL_J1129.5+3034_daily_bin72.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/873256/ft1_filtered_4FGL_J1129.5+3034_daily_bin72.fits scfile=/scratch/kocevski/873256/ft2_4FGL_J1129.5+3034_daily_bin72.fits outfile=/scratch/kocevski/873256/cmap_HighResolution_257990401_258249601_4FGL_J1129.5+3034_daily_bin72.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/873256/ft1_filtered_4FGL_J1129.5+3034_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/873256/ft2_4FGL_J1129.5+3034_daily_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/873256/Model_4FGL_J1129.5+3034_daily_bin72.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/873256/ft1_filtered_4FGL_J1129.5+3034_daily_bin72.fits.....................!
real 50.94
user 49.52
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.919       1.0000         .10000E-03   10000.    
     5 'norm      '    .86483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70885       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9102       1.0000         .10000E-03   10000.    
     9 'norm      '    .95555       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5988       1.0000         .10000E-03   10000.    
    11 'norm      '    12.335       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3135       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.815       1.0000         .10000E-03   10000.    
    16 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1492       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.360       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1072       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13345E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7030       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.6394       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.6566       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.5533       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.6318       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0958       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .72775       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=   5449.988     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4391 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.499        .42826E-06** at limit **
   2  Prefactor     .10000E-03    11.271       -.12897E-06** at limit **
   3  Prefactor     .10000E-03    3.9161       -.31476E-07** at limit **
   4  Prefactor     21.923        19.304        .23429E-06    .64478E-05
   5  norm          .86483        .29954        .76484E-08    .15646E-03
   6  Prefactor     .70922        1.8993       -.24517E-06   -.68753E-03
   7  Prefactor     .10000E-03    21.486       -.24973E-06** at limit **
   8  Prefactor     4.9120        14.569        .78855E-07   -.19832E-04
   9  norm          .95344        10.955        .30181E-06   -.64882E-04
  10  Prefactor     7.5982        6.7019        .28943E-07   -.20887E-04
  11  norm          12.335        9.8333        .20819E-06    .78945E-04
  12  Prefactor     .10000E-03    8.6792       -.33379E-07** at limit **
  13  Prefactor     1.3153        2.2531       -.19267E-06    .87312E-04
  14  Prefactor     .10000E-03    97.466       -.22017E-06** at limit **
  15  Prefactor     35.811        19.619       -.10241E-06    .76372E-04
  16  norm          .10000E-03    1.3157        .59564E-06** at limit **
  17  Prefactor     .10000E-03    5.2854        .40276E-07** at limit **
  18  Prefactor     3.1496        5.4345        .32555E-05   -.33558E-03
  19  Prefactor     29.382        45.485       -.26545E-05   -.10859E-04
  20  norm          1.1072        .97879        .28486E-06    .14775E-02
  21  Prefactor     .10000E-03    22.586       -.53741E-06** at limit **
  22  Prefactor     .10000E-03    .77905       -.27704E-07** at limit **
  23  Prefactor     .10000E-03    8.5601       -.17305E-06** at limit **
  24  Prefactor     .10000E-03    15.451       -.16512E-06** at limit **
  25  norm          4.7030        1.5428        .43019E-07    .43905E-03
  26  Prefactor     .10000E-03    15.792       -.21174E-06** at limit **
  27  norm          2.6393        2.7621        .28405E-07    .97567E-05
  28  Prefactor     5.6561        6.1206        .49166E-07    .10057E-04
  29  Prefactor     2.5532        2.3605        .29167E-08    .17224E-05
  30  Prefactor     4.6320        2.5254        .17823E-07    .42437E-04
  31  Normalizat    1.0958        .18829       -.18034E-05    .28890E-04
  32  Prefactor     .72784        .20180        .16385E-05    .10154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9227
  norm       = 0.864827
  Prefactor  = 0.709219
  Prefactor  = 0.0001
  Prefactor  = 4.91198
  norm       = 0.953437
  Prefactor  = 7.5982
  norm       = 12.3349
  Prefactor  = 0.0001
  Prefactor  = 1.31531
  Prefactor  = 0.0001
  Prefactor  = 35.8111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1496
  Prefactor  = 29.3823
  norm       = 1.10719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70298
  Prefactor  = 0.0001
  norm       = 2.63935
  Prefactor  = 5.6561
  Prefactor  = 2.55324
  Prefactor  = 4.63195
  Normalizat = 1.0958
  Prefactor  = 0.727838
 **********
 **   18 **HESSE 
 **********

 FCN=   5449.988     FROM HESSE     STATUS=OK           671 CALLS     5062 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9204        .14265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.923        19.309        .85553E-04   -1.4771    
   5  norm          .86483        .30079        .22232E-04   -1.5522    
   6  Prefactor     .70922        1.6941        .15965E-02   -1.5540    
   7  Prefactor     .10000E-03    21.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9120        14.564        .18151E-03   -1.5265    
   9  norm          .95344        30.468        .45264E-02   -1.5513    
  10  Prefactor     7.5982        6.6996        .14548E-03   -1.5157    
  11  norm          12.335        9.8405        .11406E-03   -1.5005    
  12  Prefactor     .10000E-03    8.7601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3153        2.1970        .13400E-03   -1.5479    
  14  Prefactor     .10000E-03    98.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.811        19.623        .66965E-04   -1.4510    
  16  norm          .10000E-03    1.4048        .16669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2926        .16566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1496        5.4935        .10620E-02   -1.5353    
  19  Prefactor     29.382        45.667        .73940E-04   -1.4623    
  20  norm          1.1072        .96728        .63315E-04   -1.5498    
  21  Prefactor     .10000E-03    22.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5694        .12591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7030        1.5426        .50208E-04   -1.5274    
  26  Prefactor     .10000E-03    15.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.6393        2.7730        .11158E-03   -1.5383    
  28  Prefactor     5.6561        6.1178        .16890E-03   -1.5232    
  29  Prefactor     2.5532        2.3745        .97391E-04   -1.5388    
  30  Prefactor     4.6320        2.5228        .83240E-04   -1.5277    
  31  Normalizat    1.0958        .21118        .22336E-03   -.89887    
  32  Prefactor     .72784        .23154        .30817E-03   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18713e-08
Minuit parameter uncertainties:
  1  0.000112021
  2  4.41578e-05
  3  3.2826e-06
  4  19.3148
  5  0.300788
  6  1.69424
  7  0.000119164
  8  14.5741
  9  10.785
  10  6.70023
  11  9.84175
  12  4.5922e-05
  13  2.19716
  14  0.000307729
  15  19.6266
  16  4.21447e-05
  17  5.47534e-06
  18  5.49436
  19  45.7213
  20  0.967289
  21  3.383e-06
  22  3.61881e-05
  23  3.80353e-06
  24  5.44009e-05
  25  1.54265
  26  5.38353e-06
  27  2.77312
  28  6.11844
  29  2.37461
  30  2.52282
  31  0.211338
  32  0.231851
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  3.581e+01  1.963e+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:  7.278e-01  2.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.096e+00  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.45
Ra Dec: 172.380 30.579
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 7.21e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.21e-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) = 5449.91176047
delta logL = 0.0764523834941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5449.90782026
delta logL = 0.0803925979799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.835       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2618       1.0000          .0000       10.000    
     3 'Normalizat'    1.1068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71652       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=   5449.908     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      262 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.779        531.86        .14969E-02   -.29794E-03
   2  Index         2.2601        3.4548        .13635       -.10862E-03
   3  Normalizat    1.1068        .10145        .37731E-01   -.72480E-03
   4  Prefactor     .71684        .10325        .70096E-01   -.38770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.7795
  Index      = 2.26013
  Normalizat = 1.1068
  Prefactor  = 0.716843
 **********
 **   18 **HESSE 
 **********

 FCN=   5449.908     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.779        32.510        .59876E-04   -1.4369    
   2  Index         2.2601        .47991        .53221E-02   -.57994    
   3  Normalizat    1.1068        .20182        .22238E-03   -.89534    
   4  Prefactor     .71684        .23044        .31020E-03   -1.0287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31985e-10
Minuit parameter uncertainties:
  1  32.5229
  2  0.480969
  3  0.201965
  4  0.230745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873256': 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) = 5449.90779725
delta logL = 0.0804156022105

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  4.478e+01  3.252e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.260e+00  4.810e-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:  7.168e-01  2.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.107e+00  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.56
Ra Dec: 172.380 30.579
Photon Index (Free Index): 2.26 +/- 0.48
Photon Flux (Free Index): 6.61e-08 +/- 3.93e-08
Energy Flux (Free Index): 2.67e-05 +/- 2.08e-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/873256/cmap_HighResolution_257990401_258249601_4FGL_J1129.5+3034_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.21e-08', energy_flux2='2.67e-05', photon_flux_error='3.95e-08', dlogl='8.04e-02', energy_flux='2.20e-05', photon_flux2='6.61e-08', job_status='DONE', time_completed='2021-09-04 01:30:03.131855', photon_index_error2='0.48', photon_index2='2.26', ts='5.45', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='1.10', time_epoch_completed='1630744203.13', return_code='0', job_id='873256', GAL2='0.72', EG2='1.11', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.93e-08', ts2='5.56', photon_index='2.46' WHERE bin_id='72' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:30:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 873256: <4FGL_J1129.5+3034_daily_bin72> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin72> 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) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:16:04 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:04 2021
Terminated at Sat Sep  4 01:30:04 2021
Results reported at Sat Sep  4 01:30:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin72 172.38 30.5789 257990401 258249601 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 :                                   798.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            843 sec.

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

