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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin885
RA = 172.296, Dec = 37.0644
tmin = 468720001, tmax = 468979201
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='833429', job_status='RUN', time_executed='2021-09-03 23:06:32.758724', time_epoch_executed='1630735592.76' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='885'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833429/ft1_4FGL_J1129.1+3703_daily_bin885.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833429/ft1_4FGL_J1129.1+3703_daily_bin885.fits outfile=/scratch/kocevski/833429/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin885.fits ra=172.296 dec=37.0644 rad=12.0 tmin=468720001.0 tmax=468979201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.50
user 3.31
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.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/833429/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin885.fits evtable="EVENTS" outfile="/scratch/kocevski/833429/ft1_filtered_4FGL_J1129.1+3703_daily_bin885.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833429/ft1_filtered_4FGL_J1129.1+3703_daily_bin885.fits" evtable="EVENTS" scfile=/scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits sctable="SC_DATA" outfile=/scratch/kocevski/833429/ltcube_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.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/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits
.....................!
real 14.22
user 13.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833429/ft1_filtered_4FGL_J1129.1+3703_daily_bin885.fits evtable="EVENTS" scfile=/scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits sctable="SC_DATA" expcube=/scratch/kocevski/833429/ltcube_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.fits outfile=/scratch/kocevski/833429/expmap_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.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/833429/ltcube_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.fits
.....................!
real 191.71
user 186.66
sys 4.42

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1129.1+3703 @ 172.296 37.0644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/833429/ft1_filtered_4FGL_J1129.1+3703_daily_bin885.fits scfile=/scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits outfile=/scratch/kocevski/833429/cmap_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.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.296 yref=37.0644 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/833429/ft1_filtered_4FGL_J1129.1+3703_daily_bin885.fits scfile=/scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits outfile=/scratch/kocevski/833429/cmap_HighResolution_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.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.296 yref=37.0644 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833429/ft1_filtered_4FGL_J1129.1+3703_daily_bin885.fits evtable="EVENTS" scfile=/scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833429/Model_4FGL_J1129.1+3703_daily_bin885.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/833429/ft1_filtered_4FGL_J1129.1+3703_daily_bin885.fits.....................!
real 59.46
user 58.05
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/833429/ft1_filtered_4FGL_J1129.1+3703_daily_bin885.fits', '/scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits', expMap='/scratch/kocevski/833429/expmap_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.fits', expCube='/scratch/kocevski/833429/ltcube_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/833429/Model_4FGL_J1129.1+3703_daily_bin885.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.1+3703'

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  7.179e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/833429/ft1_filtered_4FGL_J1129.1+3703_daily_bin885.fits
Spacecraft file(s): /scratch/kocevski/833429/ft2_4FGL_J1129.1+3703_daily_bin885.fits
Exposure map: /scratch/kocevski/833429/expmap_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.fits
Exposure cube: /scratch/kocevski/833429/ltcube_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/833429/Model_4FGL_J1129.1+3703_daily_bin885.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) = 7002.37688645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8059       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.681       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95487       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0634       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    62.070       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6442       1.0000         .10000E-03   10000.    
    17 'norm      '    .13021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .26136       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.6820       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13954E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.9739       1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.404       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94942       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1678       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7002.367     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     3269 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    11.249        .10690E-04** at limit **
   2  Prefactor     3.8062        3.6332        .84304E-06    .33384E-04
   3  Prefactor     .10000E-03    5.7415       -.88021E-06** at limit **
   4  Prefactor     .10000E-03    4.4428        .17571E-05** at limit **
   5  Prefactor     7.4288        1.0617        .16912E-06   -.20835E-03
   6  Prefactor     .10055E-03    23.918       -.56247E-05** at limit **
   7  Prefactor     11.683        1.0112       -.12305E-06    .14527E-04
   8  norm          1.1830        .28737        .15523E-07    .71210E-03
   9  Prefactor     .95284        1.3314        .76968E-07   -.74798E-04
  10  Prefactor     .10000E-03    3.7942       -.67246E-07** at limit **
  11  Prefactor     .10000E-03    5.1878       -.25962E-07** at limit **
  12  norm          .10000E-03    3.6542        .11950E-06** at limit **
  13  norm          1.0649        1.2271        .17991E-06    .29485E-05
  14  Prefactor     .10000E-03    .86412       -.28472E-07** at limit **
  15  Prefactor     62.103        5.4310        .65337E-06   -.54183E-02
  16  Prefactor     3.6434        1.0118        .19678E-07   -.92476E-05
  17  norm          .10001E-03    9.9816       -.15619E-04** at limit **
  18  Prefactor     .10000E-03    5.0278        .40992E-05** at limit **
  19  Prefactor     2.4678        3.6248        .29106E-06    .17529E-04
  20  Prefactor     .10060E-03    23.789        .56074E-05** at limit **
  21  norm          .25803        .88508       -.64714E-06    .20850E-03
  22  Prefactor     .10000E-03    9.9222       -.51235E-05** at limit **
  23  norm          7.6747        1.1244        .49061E-06    .58954E-04
  24  Prefactor     .10001E-03    8.9778        .30262E-05** at limit **
  25  Prefactor     .10004E-03    158.75       -.34919E-05** at limit **
  26  norm          3.9737        1.4752       -.92678E-07   -.15305E-03
  27  Prefactor     29.396        1.4569       -.22946E-07   -.37315E-04
  28  Prefactor     .10000E-03    3.1500       -.46945E-07** at limit **
  29  Normalizat    .94937        .18794       -.88906E-06    .50993E-04
  30  Prefactor     1.1678        .22595        .97733E-06    .61509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 3.80615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.42877
  Prefactor  = 0.00010055
  Prefactor  = 11.6825
  norm       = 1.18299
  Prefactor  = 0.952838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.06495
  Prefactor  = 0.0001
  Prefactor  = 62.103
  Prefactor  = 3.64344
  norm       = 0.000100015
  Prefactor  = 0.000100001
  Prefactor  = 2.46785
  Prefactor  = 0.000100603
  norm       = 0.258034
  Prefactor  = 0.000100003
  norm       = 7.67467
  Prefactor  = 0.000100011
  Prefactor  = 0.00010004
  norm       = 3.97367
  Prefactor  = 29.3961
  Prefactor  = 0.0001
  Normalizat = 0.94937
  Prefactor  = 1.16784
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.367     FROM HESSE     STATUS=OK           660 CALLS     3929 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    11.678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8062        3.6385        .51726E-02   -1.5318    
   3  Prefactor     .10000E-03    5.5329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4288        23.496        .36781E-02   -1.5163    
   6  Prefactor     .10055E-03    44.508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.683        8.4024        .29304E-02   -1.5024    
   8  norm          1.1830        .28727        .48408E-02   -1.5490    
   9  Prefactor     .95284        1.7020        .26323E-01   -1.5513    
  10  Prefactor     .10000E-03    3.7891        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6463        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0649        17.359        .11849E-01   -1.5502    
  14  Prefactor     .10000E-03    .84894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     62.103        35.860        .12733E-02   -1.4130    
  16  Prefactor     3.6434        15.148        .52904E-02   -1.5326    
  17  norm          .10001E-03    .90662        .45873E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.1444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4678        3.6639        .65085E-02   -1.5394    
  20  Prefactor     .10060E-03    46.276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .25803        .69307        .30200E-01   -1.5606    
  22  Prefactor     .10000E-03    17.882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.6747        7.8113        .36171E-02   -1.5154    
  24  Prefactor     .10001E-03    17.570        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10004E-03    162.71        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.9737        1.4802        .50583E-02   -1.5309    
  27  Prefactor     29.396        28.644        .18471E-02   -1.4623    
  28  Prefactor     .10000E-03    3.1330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94937        .16280        .45530E-01   -.94746    
  30  Prefactor     1.1678        .19098        .61806E-01   -.87327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2966e-06
Minuit parameter uncertainties:
  1  0.000721164
  2  3.63876
  3  3.04299e-06
  4  8.57124e-06
  5  23.5255
  6  0.00990158
  7  8.40325
  8  0.287268
  9  1.70214
  10  6.61868e-06
  11  6.28771e-06
  12  3.58948e-06
  13  8.60177
  14  2.2745e-06
  15  35.8724
  16  14.8645
  17  0.000229669
  18  0.00020964
  19  3.66424
  20  0.0105739
  21  0.693087
  22  0.00047767
  23  7.81237
  24  0.00087388
  25  0.00512358
  26  1.48025
  27  28.6576
  28  3.2064e-06
  29  0.162881
  30  0.19109
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  6.210e+01  3.587e+01  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  1.168e+00  1.911e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  9.494e-01  1.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.03
Ra Dec: 172.296 37.064
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 4.59e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.26e-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) = 7002.27576773
delta logL = 0.0911417067127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7002.26559897
delta logL = 0.101310465589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.716       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9957       1.0000          .0000       10.000    
     3 'Normalizat'    .95492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1647       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+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=   7002.266     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.752        58.257        .22632E-03    .60179E-04
   2  Index         1.9955        .39694        .50170E-02    .45303E-03
   3  Normalizat    .95509        .18576        .24636E-03   -.85419E-04
   4  Prefactor     1.1645        .22591        .27372E-03    .23674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.7518
  Index      = 1.99554
  Normalizat = 0.955089
  Prefactor  = 1.1645
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.266     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.752        56.625        .90528E-05   -1.3931    
   2  Index         1.9955        .38581        .10034E-02   -.64462    
   3  Normalizat    .95509        .18591        .98542E-05   -.94551    
   4  Prefactor     1.1645        .22613        .10949E-04   -.87431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26933e-11
Minuit parameter uncertainties:
  1  56.664
  2  0.386414
  3  0.18604
  4  0.226315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833429': 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) = 7002.26559838
delta logL = 0.101311056772

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  7.875e+01  5.666e+01  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  1.996e+00  3.864e-01  0.000e+00  1.000e+01 (-1.000e+00)
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  1.164e+00  2.263e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  9.551e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.22
Ra Dec: 172.296 37.064
Photon Index (Free Index): 2.00 +/- 0.39
Photon Flux (Free Index): 3.96e-08 +/- 2.69e-08
Energy Flux (Free Index): 2.77e-05 +/- 2.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/833429/cmap_HighResolution_468720001_468979201_4FGL_J1129.1+3703_daily_bin885.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.59e-08', energy_flux2='2.77e-05', photon_flux_error='2.65e-08', dlogl='1.01e-01', energy_flux='2.18e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2021-09-03 23:20:32.244130', photon_index_error2='0.39', photon_index2='2.00', ts='8.03', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='0.95', time_epoch_completed='1630736432.24', return_code='0', job_id='833429', GAL2='1.16', EG2='0.96', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='2.69e-08', ts2='8.22', photon_index='2.17' WHERE bin_id='885' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:20:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 833429: <4FGL_J1129.1+3703_daily_bin885> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin885> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 23:06:18 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 23:06:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 23:06:20 2021
Terminated at Fri Sep  3 23:20:32 2021
Results reported at Fri Sep  3 23:20:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin885 172.296 37.0644 468720001 468979201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.1+3703 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   835.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

