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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1506
RA = 172.296, Dec = 37.0644
tmin = 629683201, tmax = 629942401
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='836732', job_status='RUN', time_executed='2021-09-03 23:16:49.093731', time_epoch_executed='1630736209.09' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/836732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/836732/ft1_4FGL_J1129.1+3703_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/836732/ft2_4FGL_J1129.1+3703_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/836732/ft1_4FGL_J1129.1+3703_daily_bin1506.fits outfile=/scratch/kocevski/836732/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1506.fits ra=172.296 dec=37.0644 rad=12.0 tmin=629683201.0 tmax=629942401.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.57
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/836732/ft1_filtered_4FGL_J1129.1+3703_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/836732/ft2_4FGL_J1129.1+3703_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/836732/ltcube_629683201_629942401_4FGL_J1129.1+3703_daily_bin1506.fits outfile=/scratch/kocevski/836732/expmap_629683201_629942401_4FGL_J1129.1+3703_daily_bin1506.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/836732/ltcube_629683201_629942401_4FGL_J1129.1+3703_daily_bin1506.fits
.....................!
real 193.08
user 187.35
sys 5.24

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/836732/ft1_filtered_4FGL_J1129.1+3703_daily_bin1506.fits scfile=/scratch/kocevski/836732/ft2_4FGL_J1129.1+3703_daily_bin1506.fits outfile=/scratch/kocevski/836732/cmap_629683201_629942401_4FGL_J1129.1+3703_daily_bin1506.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/836732/ft1_filtered_4FGL_J1129.1+3703_daily_bin1506.fits scfile=/scratch/kocevski/836732/ft2_4FGL_J1129.1+3703_daily_bin1506.fits outfile=/scratch/kocevski/836732/cmap_HighResolution_629683201_629942401_4FGL_J1129.1+3703_daily_bin1506.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.753       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12940E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18736E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.800       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.043       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.666       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.562       1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0786       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11669E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.069       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2990       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9815       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7915       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2777       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6814       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.577       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.7314       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.6121       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87247       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85580       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=   6114.957     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3339 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.785        36.143        .18466E-04    .19479E-03
   2  Prefactor     .10001E-03    3.8046       -.13176E-05** at limit **
   3  Prefactor     .10001E-03    4.7635       -.22300E-05** at limit **
   4  Prefactor     .10000E-03    16.695       -.27810E-05** at limit **
   5  Prefactor     18.794        22.834       -.10740E-05    .55782E-05
   6  Prefactor     5.9672        294.67       -.12221E-03    .10170E-04
   7  Prefactor     13.042        9.9227       -.17796E-06   -.75089E-05
   8  norm          1.3793        .33894        .28400E-07    .89211E-03
   9  Prefactor     .10000E-03    .83256        .93088E-08** at limit **
  10  Prefactor     13.666        13.904       -.27233E-06    .24684E-05
  11  Prefactor     16.563        14.046       -.34614E-06    .23889E-04
  12  norm          .10000E-03    8.9099        .27900E-06** at limit **
  13  norm          .10000E-03    2.8953       -.23403E-06** at limit **
  14  Prefactor     4.0798        2.9775       -.46532E-06   -.36213E-03
  15  Prefactor     .10000E-03    102.10        .61759E-05** at limit **
  16  Prefactor     23.068        14.788        .28162E-06    .17755E-04
  17  norm          7.3006        3.3569       -.80879E-07   -.28956E-03
  18  Prefactor     1.9803        7.3744       -.16434E-05   -.43918E-03
  19  Prefactor     9.7909        5.5303        .75270E-06   -.77714E-04
  20  Prefactor     .10000E-03    14.219        .52381E-05** at limit **
  21  norm          2.2774        1.0691       -.69807E-08   -.14979E-03
  22  Prefactor     4.6774        17.727        .19136E-05   -.49526E-04
  23  norm          .10000E-03    3.1969        .33191E-07** at limit **
  24  Prefactor     20.575        17.838        .56028E-06   -.73438E-05
  25  Prefactor     .10000E-03    23.977        .15926E-06** at limit **
  26  norm          4.7312        1.3795       -.80781E-07    .34049E-04
  27  Prefactor     5.6104        18.398        .29531E-06   -.41431E-04
  28  Prefactor     .10000E-03    2.8829        .59505E-07** at limit **
  29  Normalizat    .87262        .16556        .14866E-05    .18767E-03
  30  Prefactor     .85574        .19121       -.48244E-06    .17157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.785
  Prefactor  = 0.000100006
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 18.7944
  Prefactor  = 5.96719
  Prefactor  = 13.0419
  norm       = 1.3793
  Prefactor  = 0.0001
  Prefactor  = 13.6661
  Prefactor  = 16.5634
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.07984
  Prefactor  = 0.0001
  Prefactor  = 23.0682
  norm       = 7.30061
  Prefactor  = 1.98029
  Prefactor  = 9.79089
  Prefactor  = 0.0001
  norm       = 2.27744
  Prefactor  = 4.67737
  norm       = 0.0001
  Prefactor  = 20.5753
  Prefactor  = 0.0001
  norm       = 4.73122
  Prefactor  = 5.61035
  Prefactor  = 0.0001
  Normalizat = 0.872617
  Prefactor  = 0.855738
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.957     FROM HESSE     STATUS=OK           594 CALLS     3933 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.785        36.158        .24936E-03   -1.4096    
   2  Prefactor     .10001E-03    12.961        .29279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    4.8961        .16731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.794        22.839        .92374E-04   -1.4841    
   6  Prefactor     5.9672        293.72        .16391E-03   -1.5219    
   7  Prefactor     13.042        9.9156        .11091E-03   -1.4986    
   8  norm          1.3793        .34047        .21121E-04   -1.5473    
   9  Prefactor     .10000E-03    .84406        .69600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.666        13.894        .10835E-03   -1.4968    
  11  Prefactor     16.563        14.086        .98417E-04   -1.4894    
  12  norm          .10000E-03    8.9580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.9015        .12995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0798        2.9643        .10280E-03   -1.5304    
  15  Prefactor     .10000E-03    102.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.068        14.733        .83397E-04   -1.4747    
  17  norm          7.3006        3.3453        .87216E-04   -1.5168    
  18  Prefactor     1.9803        7.3333        .29444E-03   -1.5427    
  19  Prefactor     9.7909        5.5211        .12806E-03   -1.5082    
  20  Prefactor     .10000E-03    14.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2774        1.0690        .27207E-04   -1.5406    
  22  Prefactor     4.6774        17.723        .18599E-03   -1.5275    
  23  norm          .10000E-03    3.2001        .13655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.575        17.830        .88296E-04   -1.4800    
  25  Prefactor     .10000E-03    23.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.7312        1.3790        .47631E-04   -1.5273    
  27  Prefactor     5.6104        18.392        .16958E-03   -1.5234    
  28  Prefactor     .10000E-03    2.8916        .12965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .87262        .19168        .24237E-03   -.97429    
  30  Prefactor     .85574        .22187        .29276E-03   -.97705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84464e-09
Minuit parameter uncertainties:
  1  36.1701
  2  0.000574388
  3  0.000390964
  4  9.51488e-05
  5  22.8499
  6  84.1707
  7  9.91686
  8  0.340473
  9  9.9964e-07
  10  13.8972
  11  14.0892
  12  2.17818e-06
  13  1.85375e-06
  14  2.96442
  15  0.000236934
  16  14.735
  17  3.34538
  18  7.33666
  19  5.52134
  20  1.20307e-06
  21  1.06904
  22  17.7428
  23  6.06857e-07
  24  17.8348
  25  9.0699e-06
  26  1.37899
  27  18.4106
  28  2.97141e-06
  29  0.191834
  30  0.222108
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  2.369e-04  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.557e-01  2.221e-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.726e-01  1.918e-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: 8.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/836732/likelihoodResults_629683201_629942401_4FGL_J1129.1+3703_daily_bin1506.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) = 6114.95720987
delta logL = -4.63722499262e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6114.93052959
delta logL = 0.0266339031505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0552       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2474       1.0000          .0000       10.000    
     3 'Normalizat'    .86412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86024       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=   6114.931     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      391 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0732        982.82        .32963E-03   -.19835E-03
   2  Index         3.2414        8.2732        .74316E-02   -.21917E-04
   3  Normalizat    .86413        .14734        .24325E-03   -.11525E-03
   4  Prefactor     .86021        .17916        .29192E-03   -.64842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0732
  Index      = 3.24137
  Normalizat = 0.864133
  Prefactor  = 0.860212
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.931     FROM HESSE     STATUS=OK            25 CALLS      416 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0732        30.458        .13185E-04   -1.5501    
   2  Index         3.2414        3.3745        .29726E-03   -.35942    
   3  Normalizat    .86413        .18692        .97301E-05   -.97732    
   4  Prefactor     .86021        .22140        .11677E-04   -.97546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33441e-11
Minuit parameter uncertainties:
  1  11.4406
  2  3.76868
  3  0.187058
  4  0.221633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/836732': 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) = 6114.93052817
delta logL = 0.0266353224097

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.073e+00  1.144e+01  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  3.241e+00  3.769e+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.602e-01  2.216e-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.641e-01  1.871e-01  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/836732/cmap_HighResolution_629683201_629942401_4FGL_J1129.1+3703_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2021-09-03 23:32:09.180010', job_id='836732', GAL2='0.86', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1630737129.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.66e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1506' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:32:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 836732: <4FGL_J1129.1+3703_daily_bin1506> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin1506> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 23:16:21 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 23:16:33 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:16:33 2021
Terminated at Fri Sep  3 23:32:10 2021
Results reported at Fri Sep  3 23:32:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1506 172.296 37.0644 629683201 629942401 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 :                                   900.20 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            949 sec.

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

