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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin73
RA = 172.296, Dec = 37.0644
tmin = 258249601, tmax = 258508801
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='826262', job_status='RUN', time_executed='2021-09-03 22:50:05.931024', time_epoch_executed='1630734605.93' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826262

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826262/ft1_4FGL_J1129.1+3703_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826262/ft2_4FGL_J1129.1+3703_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826262/ft1_4FGL_J1129.1+3703_daily_bin73.fits outfile=/scratch/kocevski/826262/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin73.fits ra=172.296 dec=37.0644 rad=12.0 tmin=258249601.0 tmax=258508801.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.19
user 1.00
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826262/ft1_filtered_4FGL_J1129.1+3703_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/826262/ft2_4FGL_J1129.1+3703_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/826262/ltcube_258249601_258508801_4FGL_J1129.1+3703_daily_bin73.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/826262/ft2_4FGL_J1129.1+3703_daily_bin73.fits
.....................!
real 13.18
user 12.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826262/ft1_filtered_4FGL_J1129.1+3703_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/826262/ft2_4FGL_J1129.1+3703_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/826262/ltcube_258249601_258508801_4FGL_J1129.1+3703_daily_bin73.fits outfile=/scratch/kocevski/826262/expmap_258249601_258508801_4FGL_J1129.1+3703_daily_bin73.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/826262/ltcube_258249601_258508801_4FGL_J1129.1+3703_daily_bin73.fits
.....................!
real 192.83
user 187.28
sys 4.73

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/826262/ft1_filtered_4FGL_J1129.1+3703_daily_bin73.fits scfile=/scratch/kocevski/826262/ft2_4FGL_J1129.1+3703_daily_bin73.fits outfile=/scratch/kocevski/826262/cmap_258249601_258508801_4FGL_J1129.1+3703_daily_bin73.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826262/ft1_filtered_4FGL_J1129.1+3703_daily_bin73.fits scfile=/scratch/kocevski/826262/ft2_4FGL_J1129.1+3703_daily_bin73.fits outfile=/scratch/kocevski/826262/cmap_HighResolution_258249601_258508801_4FGL_J1129.1+3703_daily_bin73.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9725       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1892       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67201E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5564       1.0000         .10000E-03   10000.    
    13 'norm      '    8.9691       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5802       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11249E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8276       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7003       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5186       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.485       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0307       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.961       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.5899       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .57080       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1190       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.

 FCN=   3287.835     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3894 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    25.152        .90712E-02** at limit **
   2  Prefactor     8.3516        5.8998        .34680E-02   -.61749E-04
   3  Prefactor     5.9742        7.0789        .41076E-02    .43246E-03
   4  Prefactor     .10000E-03    12.140        .90712E-02** at limit **
   5  Prefactor     .10000E-03    23.961        .90712E-02** at limit **
   6  Prefactor     .10008E-03    50.210        .90712E-02** at limit **
   7  Prefactor     .10000E-03    5.1632        .90712E-02** at limit **
   8  norm          1.1891        .39830        .45149E-02   -.28693E-02
   9  Prefactor     2.0600        2.4199        .71984E-02    .57822E-04
  10  Prefactor     .10004E-03    11.616        .10501    ** at limit **
  11  Prefactor     .10000E-03    7.1011        .90712E-02** at limit **
  12  norm          6.5441        16.838        .39182E-02   -.11853E-03
  13  norm          8.9690        14.194        .33458E-02    .95403E-03
  14  Prefactor     1.5787        2.2693        .84469E-02    .30697E-03
  15  Prefactor     .10001E-03    116.40        .90712E-02** at limit **
  16  Prefactor     8.8263        19.151        .33727E-02    .64731E-03
  17  norm          4.6977        3.0705        .46403E-02    .21874E-03
  18  Prefactor     .10000E-03    5.9296        .90712E-02** at limit **
  19  Prefactor     3.5184        4.6465        .53879E-02    .13063E-03
  20  Prefactor     23.485        36.103        .20664E-02    .66791E-04
  21  norm          2.0312        1.3915        .72574E-02    .49212E-03
  22  Prefactor     .10000E-03    26.370        .90712E-02** at limit **
  23  norm          .10001E-03    27.260        .90712E-02** at limit **
  24  Prefactor     51.960        39.047        .13910E-02    .28990E-03
  25  Prefactor     .10000E-03    27.194        .90712E-02** at limit **
  26  norm          4.5900        1.8985        .46971E-02   -.75553E-04
  27  Prefactor     .10002E-03    48.035        .90712E-02** at limit **
  28  Prefactor     .10000E-03    7.7918        .90712E-02** at limit **
  29  Normalizat    .57087        .21091        .61871E-01   -.69316E-04
  30  Prefactor     1.1189        .24878        .55909E-01   -.68734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 8.35157
  Prefactor  = 5.97421
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100085
  Prefactor  = 0.0001
  norm       = 1.18905
  Prefactor  = 2.06
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  norm       = 6.54408
  norm       = 8.96901
  Prefactor  = 1.57868
  Prefactor  = 0.000100013
  Prefactor  = 8.8263
  norm       = 4.69767
  Prefactor  = 0.0001
  Prefactor  = 3.51837
  Prefactor  = 23.4852
  norm       = 2.03118
  Prefactor  = 0.000100005
  norm       = 0.000100005
  Prefactor  = 51.9602
  Prefactor  = 0.0001
  norm       = 4.58995
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Normalizat = 0.570868
  Prefactor  = 1.11887
 **********
 **   18 **HESSE 
 **********

 FCN=   3287.835     FROM HESSE     STATUS=OK           580 CALLS     4474 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    25.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.3516        5.9028        .11348E-03   -1.5130    
   3  Prefactor     5.9742        7.0733        .15872E-03   -1.5219    
   4  Prefactor     .10000E-03    12.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10008E-03    50.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1679        .12725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1891        .39366        .19925E-04   -1.5490    
   9  Prefactor     2.0600        2.4131        .93513E-04   -1.5421    
  10  Prefactor     .10004E-03    59.253        .35760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1041        .14923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5441        16.267        .15673E-03   -1.5196    
  13  norm          8.9690        14.191        .66916E-03   -1.5109    
  14  Prefactor     1.5787        2.2332        .98481E-04   -1.5457    
  15  Prefactor     .10001E-03    118.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.8263        19.141        .67453E-03   -1.5114    
  17  norm          4.6977        3.0590        .77101E-04   -1.5274    
  18  Prefactor     .10000E-03    5.9342        .13633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5184        4.6337        .13668E-03   -1.5333    
  20  Prefactor     23.485        36.196        .82656E-04   -1.4738    
  21  norm          2.0312        1.3872        .51909E-04   -1.5423    
  22  Prefactor     .10000E-03    26.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    27.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     51.960        39.049        .55638E-04   -1.4265    
  25  Prefactor     .10000E-03    27.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.5900        1.8985        .48798E-04   -1.5279    
  27  Prefactor     .10002E-03    48.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.8765        .15630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .57087        .24571        .27375E-03   -1.0924    
  30  Prefactor     1.1189        .29277        .24721E-03   -.88866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48171e-09
Minuit parameter uncertainties:
  1  0.000873666
  2  5.90324
  3  7.07427
  4  8.04599e-05
  5  0.000668726
  6  0.00413079
  7  1.72526e-05
  8  0.39366
  9  2.41322
  10  0.00320234
  11  1.95858e-05
  12  16.2778
  13  14.1961
  14  2.23332
  15  0.00249767
  16  19.1547
  17  3.05908
  18  3.23259e-05
  19  4.63413
  20  36.2301
  21  1.38722
  22  0.000719377
  23  0.000769125
  24  39.0686
  25  6.16157e-05
  26  1.89857
  27  0.00204846
  28  9.50448e-06
  29  0.246183
  30  0.293191
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  2.498e-03  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.119e+00  2.932e-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:  5.709e-01  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.296 37.064
Photon Flux Upper Limit: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/826262/likelihoodResults_258249601_258508801_4FGL_J1129.1+3703_daily_bin73.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): 102
logL (Free Index) = 3287.83504349
delta logL = -4.00917656407e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3287.83504349
delta logL = -4.00888720833e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1712       1.0000          .0000       10.000    
     3 'Normalizat'    .57087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1189       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.

 FCN=   3287.835     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      212 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.935        .90713E-02** at limit **
   2  Index         2.1646        5.5817        .50000        .42231E-06
   3  Normalizat    .57087        .28676E-02    .61871E-01    .23619E-04
   4  Prefactor     1.1189        .35496E-02    .55909E-01    .10423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16461
  Normalizat = 0.570869
  Prefactor  = 1.11887
 **********
 **   18 **HESSE 
 **********

 FCN=   3287.835     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    382.30        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1646        8.9100        .50000       -.60295    
   3  Normalizat    .57087        .90687E-02    .27375E-03   -1.0924    
   4  Prefactor     1.1189        .11239E-01    .24721E-03   -.88866    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.67209e-10
Minuit parameter uncertainties:
  1  5.89307e-05
  2  249.486
  3  0.00906875
  4  0.0112387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826262': 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): 102
logL (Free Index) = 3287.8350034
delta logL = 7.37600203138e-10

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  5.893e-05  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.165e+00  2.495e+02  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.119e+00  1.124e-02  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:  5.709e-01  9.069e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/826262/cmap_HighResolution_258249601_258508801_4FGL_J1129.1+3703_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-03 23:00:47.724136', job_id='826262', GAL2='1.12', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1630735247.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='7.38e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='73' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:00:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 826262: <4FGL_J1129.1+3703_daily_bin73> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin73> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 22:46:15 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:46:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 22:46:17 2021
Terminated at Fri Sep  3 23:00:48 2021
Results reported at Fri Sep  3 23:00:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin73 172.296 37.0644 258249601 258508801 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 :                                   640.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

