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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin714
RA = 172.296, Dec = 37.0644
tmin = 424396801, tmax = 424656001
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='830692', job_status='RUN', time_executed='2021-09-03 22:59:18.280245', time_epoch_executed='1630735158.28' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830692/ft1_4FGL_J1129.1+3703_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830692/ft2_4FGL_J1129.1+3703_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830692/ft1_4FGL_J1129.1+3703_daily_bin714.fits outfile=/scratch/kocevski/830692/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin714.fits ra=172.296 dec=37.0644 rad=12.0 tmin=424396801.0 tmax=424656001.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.08
user 4.84
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830692/ft1_filtered_4FGL_J1129.1+3703_daily_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/830692/ft2_4FGL_J1129.1+3703_daily_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/830692/ltcube_424396801_424656001_4FGL_J1129.1+3703_daily_bin714.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/830692/ft2_4FGL_J1129.1+3703_daily_bin714.fits
.....................!
real 14.43
user 14.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830692/ft1_filtered_4FGL_J1129.1+3703_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/830692/ft2_4FGL_J1129.1+3703_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/830692/ltcube_424396801_424656001_4FGL_J1129.1+3703_daily_bin714.fits outfile=/scratch/kocevski/830692/expmap_424396801_424656001_4FGL_J1129.1+3703_daily_bin714.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/830692/ltcube_424396801_424656001_4FGL_J1129.1+3703_daily_bin714.fits
.....................!
real 191.17
user 185.98
sys 4.61

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/830692/ft1_filtered_4FGL_J1129.1+3703_daily_bin714.fits scfile=/scratch/kocevski/830692/ft2_4FGL_J1129.1+3703_daily_bin714.fits outfile=/scratch/kocevski/830692/cmap_424396801_424656001_4FGL_J1129.1+3703_daily_bin714.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830692/ft1_filtered_4FGL_J1129.1+3703_daily_bin714.fits scfile=/scratch/kocevski/830692/ft2_4FGL_J1129.1+3703_daily_bin714.fits outfile=/scratch/kocevski/830692/cmap_HighResolution_424396801_424656001_4FGL_J1129.1+3703_daily_bin714.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.60
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.211       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.864       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .73014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3087       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.0126       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.965       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.095       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.850       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.5844       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3860       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .44290       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=   1376.857     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3881 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.944        .12006E-04** at limit **
   2  Prefactor     17.213        13.047       -.40630E-06   -.39831E-03
   3  Prefactor     .10000E-03    4.0824       -.25666E-08** at limit **
   4  Prefactor     45.861        69.032       -.43722E-05   -.49876E-05
   5  Prefactor     .10000E-03    24.265        .90177E-05** at limit **
   6  Prefactor     .10000E-03    78.039        .38342E-04** at limit **
   7  Prefactor     .10000E-03    7.9521        .55641E-07** at limit **
   8  norm          .73021        .42949       -.26318E-07    .31325E-03
   9  Prefactor     1.3103        5.1449       -.24173E-05   -.22664E-03
  10  Prefactor     .10000E-03    20.303       -.60647E-05** at limit **
  11  Prefactor     .10000E-03    13.455        .12542E-05** at limit **
  12  norm          .10000E-03    13.203       -.10154E-04** at limit **
  13  norm          6.0104        31.239        .47878E-05    .10634E-04
  14  Prefactor     .10000E-03    2.6595        .24457E-07** at limit **
  15  Prefactor     .10000E-03    38.241       -.17407E-04** at limit **
  16  Prefactor     59.974        78.341        .27279E-04    .21443E-04
  17  norm          .10000E-03    2.2728       -.36881E-07** at limit **
  18  Prefactor     27.031        55.448       -.60408E-04    .13296E-04
  19  Prefactor     .10000E-03    21.227        .20050E-06** at limit **
  20  Prefactor     .10000E-03    67.772        .26339E-04** at limit **
  21  norm          12.848        4.7980       -.48367E-06    .11013E-03
  22  Prefactor     .10000E-03    34.175       -.64317E-05** at limit **
  23  norm          .10000E-03    19.062       -.82278E-05** at limit **
  24  Prefactor     .10000E-03    29.327        .84850E-05** at limit **
  25  Prefactor     .10000E-03    121.84       -.42322E-04** at limit **
  26  norm          4.5844        3.8012        .45126E-06    .80223E-04
  27  Prefactor     .10000E-03    46.213       -.20235E-04** at limit **
  28  Prefactor     .10000E-03    13.785        .12192E-04** at limit **
  29  Normalizat    1.3857        .39071        .42050E-05   -.36713E-05
  30  Prefactor     .44324        .41894        .16249E-05    .51862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.2127
  Prefactor  = 0.0001
  Prefactor  = 45.8608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.730211
  Prefactor  = 1.31032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.01035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.9743
  norm       = 0.0001
  Prefactor  = 27.0311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8477
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.58439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.38567
  Prefactor  = 0.443236
 **********
 **   18 **HESSE 
 **********

 FCN=   1376.857     FROM HESSE     STATUS=OK           574 CALLS     4455 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.213        13.139        .48270E-03   -1.4878    
   3  Prefactor     .10000E-03    4.0881        .73220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.861        69.039        .59203E-04   -1.4353    
   5  Prefactor     .10000E-03    24.276        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    78.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9541        .10221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .73021        .43175        .18119E-04   -1.5537    
   9  Prefactor     1.3103        5.1400        .15820E-03   -1.5479    
  10  Prefactor     .10000E-03    20.359        .16334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.459        .13297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.223        .13171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.0104        31.302        .16375E-03   -1.5218    
  14  Prefactor     .10000E-03    2.6738        .59090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.974        78.486        .51812E-04   -1.4158    
  17  norm          .10000E-03    2.2765        .54632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.031        55.475        .76962E-04   -1.4668    
  19  Prefactor     .10000E-03    21.843        .33379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    67.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.848        4.8046        .47773E-04   -1.4991    
  22  Prefactor     .10000E-03    34.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    19.064        .15829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    121.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.5844        3.8006        .63884E-04   -1.5280    
  27  Prefactor     .10000E-03    46.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.787        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3857        .44387        .21628E-03   -.81044    
  30  Prefactor     .44324        .46730        .40763E-03   -1.1466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96784e-10
Minuit parameter uncertainties:
  1  1.57974e-06
  2  13.1416
  3  2.95912e-06
  4  69.1597
  5  2.5812e-05
  6  3.63881e-05
  7  7.29722e-06
  8  0.431747
  9  5.14176
  10  1.8762e-05
  11  6.43278e-06
  12  2.07648e-06
  13  27.455
  14  2.94524e-06
  15  4.25296e-06
  16  78.6215
  17  3.75018e-07
  18  55.5809
  19  0.000175601
  20  6.74608e-06
  21  4.80472
  22  0.000146031
  23  3.02062e-06
  24  5.92329e-05
  25  4.15384e-05
  26  3.80077
  27  1.57838e-05
  28  3.13234e-06
  29  0.445111
  30  0.471413
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  4.253e-06  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:  4.432e-01  4.714e-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.386e+00  4.451e-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.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830692/likelihoodResults_424396801_424656001_4FGL_J1129.1+3703_daily_bin714.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) = 1376.85726834
delta logL = -0.000120855536352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1376.8571494
delta logL = -1.91379012904e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3761       1.0000          .0000       10.000    
     3 'Normalizat'    1.3855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44325       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=   1376.857     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      281 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10249E-03    10.673        .18142E-01** at limit **
   2  Index         2.3055        7.8444        .50000        .11043E-04
   3  Normalizat    1.3857        .53662E-02    .21628E-03    .60660E-04
   4  Prefactor     .44323        .60264E-02    .40763E-03    .29165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102494
  Index      = 2.30547
  Normalizat = 1.38567
  Prefactor  = 0.44323
 **********
 **   18 **HESSE 
 **********

 FCN=   1376.857     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10249E-03    144.46        .20257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3055        5.6904        .50000       -.56914    
   3  Normalizat    1.3857        .19866E-01    .43256E-04   -.81044    
   4  Prefactor     .44323        .22309E-01    .16305E-04   -1.1466    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.92405e-09
Minuit parameter uncertainties:
  1  0.0380533
  2  244.995
  3  0.019866
  4  0.0223099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830692': 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) = 1376.85714782
delta logL = -3.33536036123e-07

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.025e-04  3.805e-02  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.305e+00  2.450e+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:  4.432e-01  2.231e-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:  1.386e+00  1.987e-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/830692/cmap_HighResolution_424396801_424656001_4FGL_J1129.1+3703_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-03 23:07:29.407996', job_id='830692', GAL2='0.44', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630735649.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='-3.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='714' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:07:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 830692: <4FGL_J1129.1+3703_daily_bin714> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin714> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 22:56:35 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:59:01 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:59:01 2021
Terminated at Fri Sep  3 23:07:30 2021
Results reported at Fri Sep  3 23:07:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin714 172.296 37.0644 424396801 424656001 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 :                                   482.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   508 sec.
    Turnaround time :                            655 sec.

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

