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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1151
RA = 172.296, Dec = 37.0644
tmin = 537667201, tmax = 537926401
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='833822', job_status='RUN', time_executed='2021-09-03 23:07:21.507391', time_epoch_executed='1630735641.51' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833822

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833822/ft1_4FGL_J1129.1+3703_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833822/ft2_4FGL_J1129.1+3703_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833822/ft1_4FGL_J1129.1+3703_daily_bin1151.fits outfile=/scratch/kocevski/833822/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1151.fits ra=172.296 dec=37.0644 rad=12.0 tmin=537667201.0 tmax=537926401.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 5.05
user 4.76
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833822/ft2_4FGL_J1129.1+3703_daily_bin1151.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/833822/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1151.fits evtable="EVENTS" outfile="/scratch/kocevski/833822/ft1_filtered_4FGL_J1129.1+3703_daily_bin1151.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833822/ft1_filtered_4FGL_J1129.1+3703_daily_bin1151.fits" evtable="EVENTS" scfile=/scratch/kocevski/833822/ft2_4FGL_J1129.1+3703_daily_bin1151.fits sctable="SC_DATA" outfile=/scratch/kocevski/833822/ltcube_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.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/833822/ft2_4FGL_J1129.1+3703_daily_bin1151.fits
.....................!
real 16.49
user 15.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833822/ft1_filtered_4FGL_J1129.1+3703_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/833822/ft2_4FGL_J1129.1+3703_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/833822/ltcube_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.fits outfile=/scratch/kocevski/833822/expmap_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.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/833822/ltcube_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.fits
.....................!
real 191.85
user 186.20
sys 4.82

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/833822/ft1_filtered_4FGL_J1129.1+3703_daily_bin1151.fits scfile=/scratch/kocevski/833822/ft2_4FGL_J1129.1+3703_daily_bin1151.fits outfile=/scratch/kocevski/833822/cmap_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833822/ft1_filtered_4FGL_J1129.1+3703_daily_bin1151.fits scfile=/scratch/kocevski/833822/ft2_4FGL_J1129.1+3703_daily_bin1151.fits outfile=/scratch/kocevski/833822/cmap_HighResolution_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/833822/ft1_filtered_4FGL_J1129.1+3703_daily_bin1151.fits', '/scratch/kocevski/833822/ft2_4FGL_J1129.1+3703_daily_bin1151.fits', expMap='/scratch/kocevski/833822/expmap_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.fits', expCube='/scratch/kocevski/833822/ltcube_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/833822/Model_4FGL_J1129.1+3703_daily_bin1151.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/833822/ft1_filtered_4FGL_J1129.1+3703_daily_bin1151.fits
Spacecraft file(s): /scratch/kocevski/833822/ft2_4FGL_J1129.1+3703_daily_bin1151.fits
Exposure map: /scratch/kocevski/833822/expmap_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.fits
Exposure cube: /scratch/kocevski/833822/ltcube_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/833822/Model_4FGL_J1129.1+3703_daily_bin1151.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) = 5312.40456507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1314       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22729E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .74600       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6310       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.878       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3458       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.129       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9264       1.0000         .10000E-03   10000.    
    21 'norm      '    .33623       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5456       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    68.077       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.839       1.0000         .10000E-03   10000.    
    26 'norm      '    16.140       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.459       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0160       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83266       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.

 FCN=   5312.359     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     4085 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.152       -.32870E-06** at limit **
   2  Prefactor     5.1306        5.2340        .16586E-06   -.31948E-04
   3  Prefactor     .10000E-03    6.0767        .30855E-07** at limit **
   4  Prefactor     .10000E-03    23.114        .48165E-07** at limit **
   5  Prefactor     .10000E-03    8.2699        .55389E-07** at limit **
   6  Prefactor     .10000E-03    22.336        .19498E-06** at limit **
   7  Prefactor     .10000E-03    3.8228       -.17830E-08** at limit **
   8  norm          3.1560        .52481        .45054E-08   -.19545E-02
   9  Prefactor     .10116E-03    1.4317       -.32822E-06** at limit **
  10  Prefactor     .10000E-03    9.7593        .74292E-07** at limit **
  11  Prefactor     .10000E-03    9.9809        .94902E-09** at limit **
  12  norm          .67028        11.730        .33958E-05   -.85762E-03
  13  norm          .10000E-03    5.4613       -.62600E-07** at limit **
  14  Prefactor     3.6349        4.9892        .10249E-05   -.61063E-03
  15  Prefactor     22.793        84.266       -.24530E-05   -.13296E-03
  16  Prefactor     .10000E-03    18.993        .35433E-06** at limit **
  17  norm          1.3473        3.2253       -.73503E-06   -.50576E-03
  18  Prefactor     13.126        17.528       -.17447E-06   -.76947E-04
  19  Prefactor     .10000E-03    6.7339        .20969E-06** at limit **
  20  Prefactor     7.9352        30.682       -.24339E-05   -.73331E-04
  21  norm          .33504        .76376        .13300E-05    .14999E-02
  22  Prefactor     1.5416        157.80        .42000E-05   -.81538E-05
  23  norm          .10000E-03    3.0805        .27825E-07** at limit **
  24  Prefactor     68.077        40.792        .28587E-06   -.10278E-03
  25  Prefactor     22.853        36.763       -.22280E-05   -.37098E-04
  26  norm          16.140        2.9761       -.29248E-07   -.23883E-03
  27  Prefactor     .10000E-03    15.088       -.30004E-06** at limit **
  28  Prefactor     12.458        8.6485        .66206E-07   -.25705E-04
  29  Normalizat    1.0161        .20696       -.18651E-05   -.34402E-03
  30  Prefactor     .83275        .22728        .12152E-05   -.27564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.1306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.15603
  Prefactor  = 0.000101155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.670282
  norm       = 0.0001
  Prefactor  = 3.63485
  Prefactor  = 22.7933
  Prefactor  = 0.0001
  norm       = 1.34729
  Prefactor  = 13.1262
  Prefactor  = 0.0001
  Prefactor  = 7.93519
  norm       = 0.335041
  Prefactor  = 1.54161
  norm       = 0.0001
  Prefactor  = 68.0773
  Prefactor  = 22.853
  norm       = 16.1399
  Prefactor  = 0.0001
  Prefactor  = 12.4577
  Normalizat = 1.01609
  Prefactor  = 0.832752
 **********
 **   18 **HESSE 
 **********

 FCN=   5312.359     FROM HESSE     STATUS=OK           594 CALLS     4679 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1306        5.2337        .16255E-03   -1.5255    
   3  Prefactor     .10000E-03    6.1732        .17534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8250        .13918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1560        .52527        .20632E-04   -1.5353    
   9  Prefactor     .10116E-03    2.3578        .32126E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.9962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .67028        79.487        .42253E-02   -1.5544    
  13  norm          .10000E-03    5.4744        .16634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6349        4.9936        .11424E-03   -1.5327    
  15  Prefactor     22.793        83.950        .83744E-04   -1.4753    
  16  Prefactor     .10000E-03    19.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3473        3.1277        .16515E-03   -1.5476    
  18  Prefactor     13.126        17.478        .11055E-03   -1.4983    
  19  Prefactor     .10000E-03    6.8938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9352        30.407        .14242E-03   -1.5145    
  21  norm          .33504        .76888        .96141E-03   -1.5592    
  22  Prefactor     1.5416        157.35        .34278E-03   -1.5460    
  23  norm          .10000E-03    3.0808        .12494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     68.077        40.951        .48647E-04   -1.4056    
  25  Prefactor     22.853        36.876        .83816E-04   -1.4752    
  26  norm          16.140        2.9550        .49663E-04   -1.4904    
  27  Prefactor     .10000E-03    15.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.458        8.6478        .11348E-03   -1.5002    
  29  Normalizat    1.0161        .24435        .25036E-03   -.92493    
  30  Prefactor     .83275        .26930        .32193E-03   -.98532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2239e-08
Minuit parameter uncertainties:
  1  7.58025e-05
  2  5.23421
  3  5.59814e-06
  4  1.56011e-05
  5  9.41674e-06
  6  4.29982e-05
  7  8.35e-07
  8  0.525275
  9  0.0033007
  10  3.05193e-05
  11  9.1285e-06
  12  14.6172
  13  4.57961e-06
  14  4.99418
  15  84.3896
  16  6.8598e-05
  17  3.12803
  18  17.4843
  19  1.7125e-05
  20  30.4659
  21  0.768902
  22  31.2327
  23  1.03216e-06
  24  40.9677
  25  36.9129
  26  2.95506
  27  5.33794e-05
  28  8.64867
  29  0.244623
  30  0.269731
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  2.279e+01  8.439e+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:  8.328e-01  2.697e-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:  1.016e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 172.296 37.064
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833822/likelihoodResults_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.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) = 5312.3522673
delta logL = 0.00714978663837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5312.34843556
delta logL = 0.0109815279593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.205       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3583       1.0000          .0000       10.000    
     3 'Normalizat'    1.0124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83495       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=   5312.348     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      277 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.209        67.703        .93871E-04    .76542E-04
   2  Index         2.3577        1.6069        .10477E-01    .28741E-04
   3  Normalizat    1.0120        .22922        .25077E-03    .27563E-03
   4  Prefactor     .83541        .26788        .32144E-03    .22250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2088
  Index      = 2.35774
  Normalizat = 1.01202
  Prefactor  = 0.835406
 **********
 **   18 **HESSE 
 **********

 FCN=   5312.348     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.209        53.352        .37548E-05   -1.4854    
   2  Index         2.3577        1.2763        .41908E-03   -.55678    
   3  Normalizat    1.0120        .22868        .50153E-04   -.92629    
   4  Prefactor     .83541        .26745        .12857E-04   -.98436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41146e-10
Minuit parameter uncertainties:
  1  53.4923
  2  1.29635
  3  0.228905
  4  0.267865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833822': 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) = 5312.34843371
delta logL = 0.0109833775841

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.821e+01  5.349e+01  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.358e+00  1.296e+00  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:  8.354e-01  2.679e-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:  1.012e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
Ra Dec: 172.296 37.064

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/833822/cmap_HighResolution_537667201_537926401_4FGL_J1129.1+3703_daily_bin1151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-03 23:23:07.410158', job_id='833822', GAL2='0.84', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1630736587.41', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.10e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1151' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:23:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 833822: <4FGL_J1129.1+3703_daily_bin1151> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin1151> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 23:06:42 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 23:07:12 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:07:12 2021
Terminated at Fri Sep  3 23:23:08 2021
Results reported at Fri Sep  3 23:23:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1151 172.296 37.0644 537667201 537926401 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 :                                   912.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            986 sec.

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

