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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin683
RA = 172.296, Dec = 37.0644
tmin = 416361601, tmax = 416620801
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='830639', job_status='RUN', time_executed='2021-09-03 22:59:00.115463', time_epoch_executed='1630735140.12' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830639

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830639/ft1_4FGL_J1129.1+3703_daily_bin683.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830639/ft2_4FGL_J1129.1+3703_daily_bin683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830639/ft1_4FGL_J1129.1+3703_daily_bin683.fits outfile=/scratch/kocevski/830639/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin683.fits ra=172.296 dec=37.0644 rad=12.0 tmin=416361601.0 tmax=416620801.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.11
user 4.83
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830639/ft2_4FGL_J1129.1+3703_daily_bin683.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/830639/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin683.fits evtable="EVENTS" outfile="/scratch/kocevski/830639/ft1_filtered_4FGL_J1129.1+3703_daily_bin683.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830639/ft1_filtered_4FGL_J1129.1+3703_daily_bin683.fits evtable="EVENTS" scfile=/scratch/kocevski/830639/ft2_4FGL_J1129.1+3703_daily_bin683.fits sctable="SC_DATA" expcube=/scratch/kocevski/830639/ltcube_416361601_416620801_4FGL_J1129.1+3703_daily_bin683.fits outfile=/scratch/kocevski/830639/expmap_416361601_416620801_4FGL_J1129.1+3703_daily_bin683.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/830639/ltcube_416361601_416620801_4FGL_J1129.1+3703_daily_bin683.fits
.....................!
real 191.30
user 185.81
sys 4.87

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/830639/ft1_filtered_4FGL_J1129.1+3703_daily_bin683.fits scfile=/scratch/kocevski/830639/ft2_4FGL_J1129.1+3703_daily_bin683.fits outfile=/scratch/kocevski/830639/cmap_416361601_416620801_4FGL_J1129.1+3703_daily_bin683.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830639/ft1_filtered_4FGL_J1129.1+3703_daily_bin683.fits scfile=/scratch/kocevski/830639/ft2_4FGL_J1129.1+3703_daily_bin683.fits outfile=/scratch/kocevski/830639/cmap_HighResolution_416361601_416620801_4FGL_J1129.1+3703_daily_bin683.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2676       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7093       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.812       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34301E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0623       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17691E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .80054E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7621       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4024       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.9100       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.995       1.0000         .10000E-03   10000.    
    23 'norm      '    2.8953       1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.712       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73181       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91922       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=   4533.535     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     3995 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.886        37.983        .20407E-06   -.11111E-04
   2  Prefactor     2.2676        2.4325        .34299E-08    .11597E-04
   3  Prefactor     8.3483        9.3388       -.43697E-06   -.26392E-04
   4  Prefactor     .10000E-03    12.130       -.25480E-06** at limit **
   5  Prefactor     .10000E-03    13.165       -.28674E-08** at limit **
   6  Prefactor     .10000E-03    101.68       -.35474E-05** at limit **
   7  Prefactor     .10000E-03    6.6495        .29931E-07** at limit **
   8  norm          1.7092        .47567       -.63026E-07   -.19890E-02
   9  Prefactor     .10000E-03    3.3945        .87404E-07** at limit **
  10  Prefactor     45.809        24.144       -.86662E-06   -.28315E-03
  11  Prefactor     .10004E-03    48.508       -.15891E-05** at limit **
  12  norm          .10000E-03    7.4407        .21771E-06** at limit **
  13  norm          .10000E-03    9.9958       -.25409E-07** at limit **
  14  Prefactor     2.0636        4.3134       -.55012E-06    .15393E-03
  15  Prefactor     .10003E-03    518.73        .64767E-05** at limit **
  16  Prefactor     .10003E-03    87.629        .72951E-05** at limit **
  17  norm          3.7654        3.2847       -.11492E-06    .27269E-03
  18  Prefactor     .10000E-03    10.518        .47139E-07** at limit **
  19  Prefactor     4.4076        7.8729       -.12687E-05    .16978E-04
  20  Prefactor     .10000E-03    42.761        .89756E-06** at limit **
  21  norm          9.9097        2.0199        .13990E-07    .14784E-06
  22  Prefactor     28.994        24.913        .54572E-07   -.11680E-04
  23  norm          2.8968        9.8581        .78652E-07    .14785E-04
  24  Prefactor     49.728        32.755       -.11715E-07   -.48277E-04
  25  Prefactor     .10000E-03    39.708       -.44181E-06** at limit **
  26  norm          .10000E-03    .38647       -.34192E-07** at limit **
  27  Prefactor     .10000E-03    12.568        .13068E-06** at limit **
  28  Prefactor     .10000E-03    4.0157       -.13505E-07** at limit **
  29  Normalizat    .73190        .19901        .58691E-06   -.88437E-04
  30  Prefactor     .91919        .22592       -.32654E-06   -.40194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8862
  Prefactor  = 2.26759
  Prefactor  = 8.34828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.70923
  Prefactor  = 0.0001
  Prefactor  = 45.8092
  Prefactor  = 0.000100043
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.06358
  Prefactor  = 0.000100035
  Prefactor  = 0.000100029
  norm       = 3.7654
  Prefactor  = 0.0001
  Prefactor  = 4.4076
  Prefactor  = 0.0001
  norm       = 9.90972
  Prefactor  = 28.9945
  norm       = 2.89681
  Prefactor  = 49.728
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.731904
  Prefactor  = 0.919192
 **********
 **   18 **HESSE 
 **********

 FCN=   4533.535     FROM HESSE     STATUS=OK           584 CALLS     4579 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.886        38.058        .83752E-04   -1.4751    
   2  Prefactor     2.2676        2.4391        .10614E-03   -1.5407    
   3  Prefactor     8.3483        9.3365        .69365E-03   -1.5130    
   4  Prefactor     .10000E-03    12.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    102.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6646        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7092        .47346        .22599E-04   -1.5446    
   9  Prefactor     .10000E-03    3.5317        .24201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.809        23.672        .59237E-04   -1.4353    
  11  Prefactor     .10004E-03    108.58        .55030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.4665        .17948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0636        4.2101        .16201E-03   -1.5421    
  15  Prefactor     .10003E-03    541.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    114.04        .49167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7654        3.2263        .10042E-03   -1.5320    
  18  Prefactor     .10000E-03    10.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4076        7.9133        .95971E-03   -1.5288    
  20  Prefactor     .10000E-03    42.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.9097        2.0192        .40648E-04   -1.5078    
  22  Prefactor     28.994        24.909        .74403E-04   -1.4631    
  23  norm          2.8968        9.8381        .23882E-03   -1.5368    
  24  Prefactor     49.728        32.918        .56877E-04   -1.4296    
  25  Prefactor     .10000E-03    39.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .39082        .40833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    12.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.0388        .13176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .73190        .22862        .26123E-03   -1.0265    
  30  Prefactor     .91919        .25916        .27948E-03   -.95474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29328e-10
Minuit parameter uncertainties:
  1  38.0981
  2  2.43918
  3  9.33816
  4  1.12369e-05
  5  1.30621e-06
  6  0.00053512
  7  3.00701e-07
  8  0.473462
  9  7.54816e-08
  10  23.6772
  11  0.00434514
  12  1.37365e-05
  13  2.99275e-06
  14  4.21075
  15  0.00873053
  16  0.00363019
  17  3.22648
  18  9.21705e-06
  19  7.91516
  20  8.9466e-05
  21  2.01925
  22  24.9181
  23  9.84359
  24  32.93
  25  5.25229e-05
  26  1.05329e-06
  27  3.67424e-05
  28  2.63734e-06
  29  0.228922
  30  0.259512
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  8.731e-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:  9.192e-01  2.595e-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:  7.319e-01  2.289e-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.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830639/likelihoodResults_416361601_416620801_4FGL_J1129.1+3703_daily_bin683.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) = 4533.53516855
delta logL = -8.65043148224e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4533.53515992
delta logL = -2.70874807029e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1511       1.0000          .0000       10.000    
     3 'Normalizat'    .73191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91919       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=   4533.535     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      239 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16841E-02    .78749        .11485    ** at limit **
   2  Index         2.3028        6.1151        .50000       -.95659E-04
   3  Normalizat    .73191        .43378E-03    .42715E-01    .57758E-04
   4  Prefactor     .91919        .51835E-03    .45249E-01   -.57249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00168408
  Index      = 2.3028
  Normalizat = 0.731906
  Prefactor  = 0.919189
 **********
 **   18 **HESSE 
 **********

 FCN=   4533.535     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      280 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16841E-02    394.92        .14024       -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3028        6.4530        .20000       -.56977    
   3  Normalizat    .73191        .12093E-01    .26123E-03   -1.0265    
   4  Prefactor     .91919        .14447E-01    .27948E-03   -.95474    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.06415e-07
Minuit parameter uncertainties:
  1  1.59249
  2  11.0035
  3  0.0120934
  4  0.0144469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830639': 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) = 4533.53515853
delta logL = 1.36325525091e-06

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.684e-03  1.592e+00  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.303e+00  1.100e+01  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:  9.192e-01  1.445e-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:  7.319e-01  1.209e-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/830639/cmap_HighResolution_416361601_416620801_4FGL_J1129.1+3703_daily_bin683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-03 23:12:25.512256', job_id='830639', GAL2='0.92', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630735945.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.36e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='683' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 830639: <4FGL_J1129.1+3703_daily_bin683> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin683> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 22:56:31 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:58:50 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:58:50 2021
Terminated at Fri Sep  3 23:12:26 2021
Results reported at Fri Sep  3 23:12:26 2021

Your job looked like:

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

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

