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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1200
RA = 172.296, Dec = 37.0644
tmin = 550368001, tmax = 550627201
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='833902', job_status='RUN', time_executed='2021-09-03 23:10:14.099600', time_epoch_executed='1630735814.1' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833902

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833902/ft1_4FGL_J1129.1+3703_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833902/ft2_4FGL_J1129.1+3703_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833902/ft1_4FGL_J1129.1+3703_daily_bin1200.fits outfile=/scratch/kocevski/833902/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1200.fits ra=172.296 dec=37.0644 rad=12.0 tmin=550368001.0 tmax=550627201.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.06
user 3.80
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833902/ft1_filtered_4FGL_J1129.1+3703_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/833902/ft2_4FGL_J1129.1+3703_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/833902/ltcube_550368001_550627201_4FGL_J1129.1+3703_daily_bin1200.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/833902/ft2_4FGL_J1129.1+3703_daily_bin1200.fits
.....................!
real 15.33
user 14.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833902/ft1_filtered_4FGL_J1129.1+3703_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/833902/ft2_4FGL_J1129.1+3703_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/833902/ltcube_550368001_550627201_4FGL_J1129.1+3703_daily_bin1200.fits outfile=/scratch/kocevski/833902/expmap_550368001_550627201_4FGL_J1129.1+3703_daily_bin1200.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/833902/ltcube_550368001_550627201_4FGL_J1129.1+3703_daily_bin1200.fits
.....................!
real 190.54
user 186.19
sys 3.96

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/833902/ft1_filtered_4FGL_J1129.1+3703_daily_bin1200.fits scfile=/scratch/kocevski/833902/ft2_4FGL_J1129.1+3703_daily_bin1200.fits outfile=/scratch/kocevski/833902/cmap_550368001_550627201_4FGL_J1129.1+3703_daily_bin1200.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833902/ft1_filtered_4FGL_J1129.1+3703_daily_bin1200.fits scfile=/scratch/kocevski/833902/ft2_4FGL_J1129.1+3703_daily_bin1200.fits outfile=/scratch/kocevski/833902/cmap_HighResolution_550368001_550627201_4FGL_J1129.1+3703_daily_bin1200.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28739       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4612       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3364       1.0000         .10000E-03   10000.    
    12 'norm      '    28.908       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .55258       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.244       1.0000         .10000E-03   10000.    
    21 'norm      '    1.7501       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.489       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.311       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4844       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88554       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77688       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=   3006.594     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     3984 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.688        .34947E-06** at limit **
   2  Prefactor     .10000E-03    7.8441        .17183E-06** at limit **
   3  Prefactor     .10000E-03    20.763        .15159E-05** at limit **
   4  Prefactor     .10000E-03    33.200        .24447E-06** at limit **
   5  Prefactor     .40175E-03    66.679        .75768E-07** at limit **
   6  Prefactor     .10000E-03    82.844       -.10563E-06** at limit **
   7  Prefactor     .10000E-03    8.4818        .24565E-06** at limit **
   8  norm          2.4610        .83980       -.16028E-06    .36622E-03
   9  Prefactor     5.0653        4.2846        .11118E-06    .18492E-04
  10  Prefactor     .10000E-03    84.783        .55048E-05** at limit **
  11  Prefactor     5.3031        154.22        .61808E-05   -.10856E-04
  12  norm          28.898        29.913       -.13467E-05    .16319E-04
  13  norm          5.3578        6.5563        .10005E-06   -.20288E-05
  14  Prefactor     3.4677        3.5566       -.47250E-07   -.84848E-04
  15  Prefactor     .10000E-03    43.658       -.49859E-07** at limit **
  16  Prefactor     .10000E-03    34.268        .27362E-06** at limit **
  17  norm          .55283        5.9526        .16209E-05    .37255E-05
  18  Prefactor     8.7464        18.371        .98562E-06   -.10697E-04
  19  Prefactor     8.0332        7.8944        .12490E-06   -.14948E-04
  20  Prefactor     76.196        129.50       -.48597E-06   -.33352E-04
  21  norm          1.7495        2.5682        .83980E-07   -.67044E-04
  22  Prefactor     24.483        25.960        .53308E-06    .36104E-05
  23  norm          .10000E-03    26.006        .17290E-06** at limit **
  24  Prefactor     .10000E-03    20.009       -.84133E-06** at limit **
  25  Prefactor     .10000E-03    69.749        .16634E-06** at limit **
  26  norm          11.310        2.5891        .25547E-07    .47169E-04
  27  Prefactor     3.5040        138.14        .16363E-06   -.22159E-04
  28  Prefactor     .10000E-03    4.7209       -.28989E-06** at limit **
  29  Normalizat    .88569        .28433       -.29355E-05   -.89240E-05
  30  Prefactor     .77706        .29010       -.21634E-05   -.24589E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00040175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46104
  Prefactor  = 5.06526
  Prefactor  = 0.0001
  Prefactor  = 5.30313
  norm       = 28.8976
  norm       = 5.35778
  Prefactor  = 3.46773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.552833
  Prefactor  = 8.74643
  Prefactor  = 8.03319
  Prefactor  = 76.1964
  norm       = 1.74949
  Prefactor  = 24.483
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3096
  Prefactor  = 3.50403
  Prefactor  = 0.0001
  Normalizat = 0.885693
  Prefactor  = 0.777063
 **********
 **   18 **HESSE 
 **********

 FCN=   3006.594     FROM HESSE     STATUS=OK           596 CALLS     4580 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.8582        .15002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .40175E-03    89.298        .11122       -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    82.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5119        .15596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4610        .87073        .23090E-04   -1.5394    
   9  Prefactor     5.0653        4.2954        .95818E-04   -1.5258    
  10  Prefactor     .10000E-03    85.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3031        163.88        .17398E-03   -1.5247    
  12  norm          28.898        30.070        .74515E-04   -1.4632    
  13  norm          5.3578        6.5560        .15098E-03   -1.5245    
  14  Prefactor     3.4677        3.5288        .98261E-04   -1.5336    
  15  Prefactor     .10000E-03    43.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55283        5.7619        .23748E-03   -1.5559    
  18  Prefactor     8.7464        18.425        .13545E-03   -1.5116    
  19  Prefactor     8.0332        7.8956        .14143E-03   -1.5141    
  20  Prefactor     76.196        127.74        .45986E-04   -1.3960    
  21  norm          1.7495        2.5479        .91432E-04   -1.5443    
  22  Prefactor     24.483        26.022        .80947E-04   -1.4718    
  23  norm          .10000E-03    26.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    69.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.310        2.5949        .39724E-04   -1.5035    
  27  Prefactor     3.5040        140.77        .21662E-03   -1.5334    
  28  Prefactor     .10000E-03    4.7178        .11628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88569        .34488        .28478E-03   -.96965    
  30  Prefactor     .77706        .34381        .32658E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48276e-09
Minuit parameter uncertainties:
  1  2.03628e-05
  2  7.97069e-06
  3  0.000107993
  4  5.67503e-05
  5  0.328793
  6  0.000125802
  7  2.30765e-05
  8  0.870736
  9  4.29567
  10  4.49852e-05
  11  59.1382
  12  30.0857
  13  6.5569
  14  3.52901
  15  5.4477e-05
  16  0.000100176
  17  3.56963
  18  18.4366
  19  7.89658
  20  128.201
  21  2.54807
  22  26.0344
  23  1.94874e-05
  24  5.68749e-05
  25  0.000298282
  26  2.59497
  27  44.5308
  28  1.11767e-05
  29  0.345742
  30  0.344762
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  5.448e-05  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:  7.771e-01  3.448e-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:  8.857e-01  3.457e-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: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833902/likelihoodResults_550368001_550627201_4FGL_J1129.1+3703_daily_bin1200.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) = 3006.5941442
delta logL = -0.000108887493298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3006.5940358
delta logL = -4.90034381073e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7497       1.0000          .0000       10.000    
     3 'Normalizat'    .88569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77707       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=   3006.594     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      246 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5417        .90712E-02** at limit **
   2  Index         2.7307        7.7232        .50000        .55698E-05
   3  Normalizat    .88569        .28446E-02    .64383E-01    .95252E-05
   4  Prefactor     .77706        .30912E-02    .73787E-01    .78277E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.73068
  Normalizat = 0.885693
  Prefactor  = 0.777064
 **********
 **   18 **HESSE 
 **********

 FCN=   3006.594     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    155.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7307        5.9671        .50000       -.47110    
   3  Normalizat    .88569        .15104E-01    .28478E-03   -.96965    
   4  Prefactor     .77706        .16404E-01    .32658E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.2367e-07
Minuit parameter uncertainties:
  1  0.000217208
  2  375.519
  3  0.0151044
  4  0.0164037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833902': 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) = 3006.59403578
delta logL = -4.6437344281e-07

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  2.172e-04  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.731e+00  3.755e+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:  7.771e-01  1.640e-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:  8.857e-01  1.510e-02  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/833902/cmap_HighResolution_550368001_550627201_4FGL_J1129.1+3703_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-03 23:21:52.063611', job_id='833902', GAL2='0.78', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630736512.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-4.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1200' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:21:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 833902: <4FGL_J1129.1+3703_daily_bin1200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1200 172.296 37.0644 550368001 550627201 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 :                                   618.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            905 sec.

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

