/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 1 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 = 7572
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1129.5+3034_daily_bin412
RA = 172.38, Dec = 30.5789
tmin = 346118401, tmax = 346377601
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='874882', job_status='RUN', time_executed='2021-09-04 01:22:00.740585', time_epoch_executed='1630743720.74' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/874882

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/874882/ft1_4FGL_J1129.5+3034_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/874882/ft2_4FGL_J1129.5+3034_daily_bin412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/874882/ft1_4FGL_J1129.5+3034_daily_bin412.fits outfile=/scratch/kocevski/874882/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin412.fits ra=172.38 dec=30.5789 rad=12.0 tmin=346118401.0 tmax=346377601.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 4.19
user 3.89
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/874882/ft2_4FGL_J1129.5+3034_daily_bin412.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/874882/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin412.fits evtable="EVENTS" outfile="/scratch/kocevski/874882/ft1_filtered_4FGL_J1129.5+3034_daily_bin412.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.63
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/874882/ft1_filtered_4FGL_J1129.5+3034_daily_bin412.fits" evtable="EVENTS" scfile=/scratch/kocevski/874882/ft2_4FGL_J1129.5+3034_daily_bin412.fits sctable="SC_DATA" outfile=/scratch/kocevski/874882/ltcube_346118401_346377601_4FGL_J1129.5+3034_daily_bin412.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/874882/ft2_4FGL_J1129.5+3034_daily_bin412.fits
.....................!
real 16.50
user 15.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/874882/ft1_filtered_4FGL_J1129.5+3034_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/874882/ft2_4FGL_J1129.5+3034_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/874882/ltcube_346118401_346377601_4FGL_J1129.5+3034_daily_bin412.fits outfile=/scratch/kocevski/874882/expmap_346118401_346377601_4FGL_J1129.5+3034_daily_bin412.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/874882/ltcube_346118401_346377601_4FGL_J1129.5+3034_daily_bin412.fits
.....................!
real 194.75
user 188.98
sys 5.04

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/874882/ft1_filtered_4FGL_J1129.5+3034_daily_bin412.fits scfile=/scratch/kocevski/874882/ft2_4FGL_J1129.5+3034_daily_bin412.fits outfile=/scratch/kocevski/874882/cmap_346118401_346377601_4FGL_J1129.5+3034_daily_bin412.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.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/874882/ft1_filtered_4FGL_J1129.5+3034_daily_bin412.fits scfile=/scratch/kocevski/874882/ft2_4FGL_J1129.5+3034_daily_bin412.fits outfile=/scratch/kocevski/874882/cmap_HighResolution_346118401_346377601_4FGL_J1129.5+3034_daily_bin412.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.577       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.507       1.0000         .10000E-03   10000.    
     5 'norm      '    .72578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6709       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14977E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7629       1.0000         .10000E-03   10000.    
     9 'norm      '    .78920       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19463E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1239       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3578       1.0000         .10000E-03   10000.    
    14 'Prefactor '    74.072       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.837       1.0000         .10000E-03   10000.    
    16 'norm      '    .10260E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5504       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.944       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3599       1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.423       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .99197       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.249       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.313       1.0000         .10000E-03   10000.    
    25 'norm      '    .20651       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.6882       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8898       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.5924       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.1732       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0252       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .87254       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=   6001.028     FROM MIGRAD    STATUS=CONVERGED    889 CALLS     3850 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.581        18.994        .18840E-05   -.11306E-04
   2  Prefactor     7.2396        7.5780        .12898E-05    .27754E-04
   3  Prefactor     .10000E-03    5.0884       -.27567E-07** at limit **
   4  Prefactor     11.501        14.943       -.97154E-06   -.18515E-04
   5  norm          .72613        .26995        .24394E-07   -.26054E-03
   6  Prefactor     2.6710        2.1727       -.54883E-08   -.61542E-04
   7  Prefactor     .10003E-03    15.828       -.69825E-06** at limit **
   8  Prefactor     6.7691        8.3697       -.32693E-05   -.58941E-04
   9  norm          .80016        10.212        .32993E-05   -.65939E-03
  10  Prefactor     .43367E-01    6.1135        .25316E-06    .25362E-04
  11  norm          .10000E-03    3.7125       -.15369E-07** at limit **
  12  Prefactor     3.1189        7.2207       -.16180E-05   -.69246E-04
  13  Prefactor     1.3536        2.2869       -.15802E-05   -.55069E-03
  14  Prefactor     74.133        49.054        .10036E-04    .53576E-04
  15  Prefactor     12.833        15.085       -.11487E-05   -.37391E-04
  16  norm          .10000E-03    .71201       -.10763E-06** at limit **
  17  Prefactor     .10000E-03    5.8582        .86021E-07** at limit **
  18  Prefactor     8.5531        4.9977        .13040E-06    .19533E-04
  19  Prefactor     37.949        34.565       -.26482E-06    .98365E-05
  20  norm          1.3598        .95516       -.42891E-07   -.51027E-04
  21  Prefactor     63.421        21.748       -.69747E-06   -.43745E-04
  22  Prefactor     .99115        1.8093        .16513E-06   -.20657E-04
  23  Prefactor     14.243        21.679       -.44050E-05   -.27389E-04
  24  Prefactor     25.312        32.959        .15173E-05    .72156E-05
  25  norm          .20669        .57392        .97946E-07    .20035E-03
  26  Prefactor     .10000E-03    23.006        .17611E-06** at limit **
  27  norm          3.6881        2.7838        .20390E-07   -.20251E-04
  28  Prefactor     1.8856        2.1986        .47229E-06   -.17630E-02
  29  Prefactor     4.5924        2.5588       -.72067E-08   -.26951E-06
  30  Prefactor     2.1731        1.5902        .89092E-08    .17500E-04
  31  Normalizat    1.0254        .18253        .31331E-06   -.14352E-03
  32  Prefactor     .87245        .19889       -.53450E-06   -.78704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5809
  Prefactor  = 7.23959
  Prefactor  = 0.0001
  Prefactor  = 11.5014
  norm       = 0.726134
  Prefactor  = 2.67095
  Prefactor  = 0.000100026
  Prefactor  = 6.76915
  norm       = 0.800158
  Prefactor  = 0.0433672
  norm       = 0.0001
  Prefactor  = 3.11888
  Prefactor  = 1.35358
  Prefactor  = 74.133
  Prefactor  = 12.8326
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.55309
  Prefactor  = 37.9491
  norm       = 1.35982
  Prefactor  = 63.4208
  Prefactor  = 0.991146
  Prefactor  = 14.2428
  Prefactor  = 25.3122
  norm       = 0.206686
  Prefactor  = 0.0001
  norm       = 3.68809
  Prefactor  = 1.88564
  Prefactor  = 4.5924
  Prefactor  = 2.17313
  Normalizat = 1.0254
  Prefactor  = 0.872445
 **********
 **   18 **HESSE 
 **********

 FCN=   6001.028     FROM HESSE     STATUS=OK           689 CALLS     4539 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.581        19.000        .11295E-03   -1.4998    
   2  Prefactor     7.2396        7.5759        .14907E-03   -1.5170    
   3  Prefactor     .10000E-03    5.0994        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.501        14.941        .11810E-03   -1.5030    
   5  norm          .72613        .26521        .23008E-04   -1.5538    
   6  Prefactor     2.6710        2.1716        .99129E-04   -1.5381    
   7  Prefactor     .10003E-03    137.26        .53481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7691        8.3044        .15429E-03   -1.5188    
   9  norm          .80016        29.113        .43909E-02   -1.5529    
  10  Prefactor     .43367E-01    8.1226        .56290E-01   -1.5666    
  11  norm          .10000E-03    3.7239        .14576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1189        7.2086        .22939E-03   -1.5355    
  13  Prefactor     1.3536        2.2403        .13031E-03   -1.5475    
  14  Prefactor     74.133        49.129        .46651E-04   -1.3984    
  15  Prefactor     12.833        15.082        .11180E-03   -1.4991    
  16  norm          .10000E-03    .71721        .63804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5531        4.9888        .12546E-03   -1.5123    
  19  Prefactor     37.949        34.497        .65065E-04   -1.4475    
  20  norm          1.3598        .94327        .58785E-04   -1.5475    
  21  Prefactor     63.421        21.607        .50389E-04   -1.4114    
  22  Prefactor     .99115        1.7459        .13079E-03   -1.5509    
  23  Prefactor     14.243        21.688        .10611E-03   -1.4953    
  24  Prefactor     25.312        32.945        .79620E-04   -1.4701    
  25  norm          .20669        .51875        .94018E-03   -1.5617    
  26  Prefactor     .10000E-03    23.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.6881        2.7933        .10309E-03   -1.5324    
  28  Prefactor     1.8856        6.3190        .15135E-02   -1.5433    
  29  Prefactor     4.5924        2.5717        .85304E-04   -1.5279    
  30  Prefactor     2.1731        1.5942        .81110E-04   -1.5413    
  31  Normalizat    1.0254        .21101        .23895E-03   -.92184    
  32  Prefactor     .87245        .23212        .29640E-03   -.97111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09225e-08
Minuit parameter uncertainties:
  1  19.0093
  2  7.57692
  3  2.13238e-06
  4  14.9461
  5  0.265214
  6  2.17169
  7  0.00381421
  8  8.30584
  9  9.65753
  10  1.18582
  11  2.31759e-06
  12  7.21058
  13  2.2404
  14  49.1559
  15  15.0868
  16  1.06533e-05
  17  1.7034e-05
  18  4.989
  19  34.5147
  20  0.943282
  21  21.6099
  22  1.74599
  23  21.7004
  24  32.9691
  25  0.518759
  26  6.64723e-05
  27  2.79345
  28  6.32126
  29  2.57178
  30  1.59421
  31  0.211182
  32  0.232385
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.283e+01  1.509e+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:  8.724e-01  2.324e-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.025e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 9.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/874882/likelihoodResults_346118401_346377601_4FGL_J1129.5+3034_daily_bin412.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) = 6000.91461433
delta logL = 0.113465411137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6000.91014585
delta logL = 0.117933897857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.255       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0650       1.0000          .0000       10.000    
     3 'Normalizat'    1.0364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86083       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=   6000.910     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      268 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.255        869.93        .22819E-02   -.11469E-03
   2  Index         2.0650        5.3673        .19445        .32384E-04
   3  Normalizat    1.0364        .87535E-01    .41577E-01    .91201E-05
   4  Prefactor     .86076        .93179E-01    .67388E-01    .15422E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2549
  Index      = 2.06496
  Normalizat = 1.03645
  Prefactor  = 0.860764
 **********
 **   18 **HESSE 
 **********

 FCN=   6000.910     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.255        22.490        .91276E-04   -1.4830    
   2  Index         2.0650        .72555        .10036E-01   -.62736    
   3  Normalizat    1.0364        .19980        .23779E-03   -.91819    
   4  Prefactor     .86076        .23090        .29811E-03   -.97526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61121e-11
Minuit parameter uncertainties:
  1  22.5
  2  0.729497
  3  0.199946
  4  0.231166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/874882': 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) = 6000.91014581
delta logL = 0.117933938141

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.925e+01  2.250e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.065e+00  7.295e-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.608e-01  2.312e-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.036e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 172.380 30.579
Photon Index (Free Index): 2.06 +/- 0.73
Photon Flux (Free Index): 2.14e-08 +/- 2.64e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.94e-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/874882/cmap_HighResolution_346118401_346377601_4FGL_J1129.5+3034_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='1.18e-01', photon_flux2='2.14e-08', job_status='DONE', time_completed='2021-09-04 01:37:49.955555', photon_index_error2='0.73', photon_index2='2.06', ts='0.96', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.48e-08', energy_flux_error2='1.94e-05', EG='1.03', time_epoch_completed='1630744669.96', return_code='0', job_id='874882', GAL2='0.86', EG2='1.04', return_code2='0', photon_flux_error2='2.64e-08', ts2='1.19', photon_index='2.46' WHERE bin_id='412' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:37:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 874882: <4FGL_J1129.5+3034_daily_bin412> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin412> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 01:21:15 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:21:48 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:21:48 2021
Terminated at Sat Sep  4 01:37:50 2021
Results reported at Sat Sep  4 01:37:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin412 172.38 30.5789 346118401 346377601 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 :                                   943.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            995 sec.

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

