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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin926
RA = 172.296, Dec = 37.0644
tmin = 479347201, tmax = 479606401
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='833488', job_status='RUN', time_executed='2021-09-03 23:06:44.609645', time_epoch_executed='1630735604.61' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833488

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833488/ft1_4FGL_J1129.1+3703_daily_bin926.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833488/ft2_4FGL_J1129.1+3703_daily_bin926.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833488/ft1_4FGL_J1129.1+3703_daily_bin926.fits outfile=/scratch/kocevski/833488/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin926.fits ra=172.296 dec=37.0644 rad=12.0 tmin=479347201.0 tmax=479606401.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.52
user 3.25
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833488/ft1_filtered_4FGL_J1129.1+3703_daily_bin926.fits evtable="EVENTS" scfile=/scratch/kocevski/833488/ft2_4FGL_J1129.1+3703_daily_bin926.fits sctable="SC_DATA" expcube=/scratch/kocevski/833488/ltcube_479347201_479606401_4FGL_J1129.1+3703_daily_bin926.fits outfile=/scratch/kocevski/833488/expmap_479347201_479606401_4FGL_J1129.1+3703_daily_bin926.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/833488/ltcube_479347201_479606401_4FGL_J1129.1+3703_daily_bin926.fits
.....................!
real 192.15
user 186.59
sys 5.13

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/833488/ft1_filtered_4FGL_J1129.1+3703_daily_bin926.fits scfile=/scratch/kocevski/833488/ft2_4FGL_J1129.1+3703_daily_bin926.fits outfile=/scratch/kocevski/833488/cmap_479347201_479606401_4FGL_J1129.1+3703_daily_bin926.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833488/ft1_filtered_4FGL_J1129.1+3703_daily_bin926.fits scfile=/scratch/kocevski/833488/ft2_4FGL_J1129.1+3703_daily_bin926.fits outfile=/scratch/kocevski/833488/cmap_HighResolution_479347201_479606401_4FGL_J1129.1+3703_daily_bin926.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12181E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.468       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.115       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0526       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.765       1.0000         .10000E-03   10000.    
    13 'norm      '    .13003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2379       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5227       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18952E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2492       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.423       1.0000         .10000E-03   10000.    
    21 'norm      '    .42599       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.086       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.789       1.0000         .10000E-03   10000.    
    26 'norm      '    4.7501       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96891       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81331       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=   5280.806     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3908 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.984       -.10853E-05** at limit **
   2  Prefactor     .10000E-03    1.9980       -.31796E-06** at limit **
   3  Prefactor     .10000E-03    2.3360       -.14645E-05** at limit **
   4  Prefactor     29.448        27.365        .13144E-05    .17321E-03
   5  Prefactor     31.512        26.217        .85293E-06    .12301E-03
   6  Prefactor     69.115        71.305       -.60197E-07    .22433E-04
   7  Prefactor     1.0523        30.800        .33048E-05    .37871E-03
   8  norm          1.4474        .35169       -.16373E-07   -.19836E-03
   9  Prefactor     2.5527        3.2274        .15299E-06    .82365E-03
  10  Prefactor     .10000E-03    13.778       -.22870E-06** at limit **
  11  Prefactor     .10000E-03    5.5999       -.12997E-06** at limit **
  12  norm          10.765        10.254       -.13780E-06   -.11731E-04
  13  norm          .10001E-03    27.049        .19834E-04** at limit **
  14  Prefactor     2.2382        2.1384        .16129E-07    .31731E-03
  15  Prefactor     .10000E-03    18.918        .27805E-07** at limit **
  16  Prefactor     .10000E-03    7.3528        .61620E-07** at limit **
  17  norm          2.5234        2.2885        .12738E-06    .62585E-03
  18  Prefactor     .10002E-03    6.5222        .96272E-06** at limit **
  19  Prefactor     5.2487        4.8846        .13014E-06    .29964E-03
  20  Prefactor     36.429        45.723        .15077E-05    .13077E-03
  21  norm          .42445        .85657       -.51559E-06    .43383E-03
  22  Prefactor     .10000E-03    17.793        .19344E-06** at limit **
  23  norm          18.089        13.843        .53948E-06    .23980E-03
  24  Prefactor     .10000E-03    15.271        .57592E-06** at limit **
  25  Prefactor     10.828        57.362       -.27069E-05    .15231E-04
  26  norm          4.7499        1.5185       -.28103E-07   -.29742E-03
  27  Prefactor     .10000E-03    39.387        .11615E-05** at limit **
  28  Prefactor     .10000E-03    2.2873       -.17440E-07** at limit **
  29  Normalizat    .96869        .17521        .25224E-06    .40649E-03
  30  Prefactor     .81360        .19999        .10136E-05    .36039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 29.4484
  Prefactor  = 31.5122
  Prefactor  = 69.1146
  Prefactor  = 1.0523
  norm       = 1.4474
  Prefactor  = 2.55268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7654
  norm       = 0.000100008
  Prefactor  = 2.23821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.52338
  Prefactor  = 0.00010002
  Prefactor  = 5.24873
  Prefactor  = 36.4291
  norm       = 0.424446
  Prefactor  = 0.0001
  norm       = 18.0885
  Prefactor  = 0.0001
  Prefactor  = 10.8284
  norm       = 4.74992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.968691
  Prefactor  = 0.8136
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.806     FROM HESSE     STATUS=OK           584 CALLS     4492 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0113        .10041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4093        .21495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.448        27.459        .73805E-04   -1.4622    
   5  Prefactor     31.512        26.245        .71357E-04   -1.4585    
   6  Prefactor     69.115        71.439        .48283E-04   -1.4043    
   7  Prefactor     1.0523        30.792        .48147E-02   -1.5503    
   8  norm          1.4474        .35210        .20438E-04   -1.5467    
   9  Prefactor     2.5527        3.1188        .12319E-03   -1.5388    
  10  Prefactor     .10000E-03    13.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6048        .16795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.765        10.245        .12211E-03   -1.5052    
  13  norm          .10001E-03    27.518        .33596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2382        2.1200        .97390E-04   -1.5409    
  15  Prefactor     .10000E-03    18.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5234        2.2721        .98190E-04   -1.5390    
  18  Prefactor     .10002E-03    43.135        .35145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2487        4.8644        .14632E-03   -1.5250    
  20  Prefactor     36.429        45.746        .66406E-04   -1.4500    
  21  norm          .42445        .85336        .90999E-03   -1.5578    
  22  Prefactor     .10000E-03    17.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.089        13.861        .94179E-04   -1.4857    
  24  Prefactor     .10000E-03    15.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.828        57.160        .12198E-03   -1.5050    
  26  norm          4.7499        1.5187        .48838E-04   -1.5272    
  27  Prefactor     .10000E-03    39.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.2978        .10733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .96869        .20542        .22624E-03   -.94087    
  30  Prefactor     .81360        .23414        .29264E-03   -.99229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87004e-09
Minuit parameter uncertainties:
  1  0.000105803
  2  3.85976e-05
  3  0.000191081
  4  27.471
  5  26.2545
  6  71.5283
  7  11.3906
  8  0.352104
  9  3.11903
  10  0.000162535
  11  1.71778e-05
  12  10.2465
  13  0.000925585
  14  2.12007
  15  2.45091e-05
  16  2.02544e-05
  17  2.27215
  18  0.00187581
  19  4.86477
  20  45.7902
  21  0.853387
  22  6.69995e-05
  23  13.8636
  24  9.93952e-06
  25  49.8317
  26  1.5187
  27  8.43409e-05
  28  2.3673e-06
  29  0.205583
  30  0.234429
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  2.451e-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:  8.136e-01  2.344e-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:  9.687e-01  2.056e-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: 5.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833488/likelihoodResults_479347201_479606401_4FGL_J1129.1+3703_daily_bin926.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) = 5280.80580706
delta logL = -0.000251736816608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5280.80555836
delta logL = -3.03939486912e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15219E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5020       1.0000          .0000       10.000    
     3 'Normalizat'    .96869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81360       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=   5280.806     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10236E-03    1.0288        .18142E-01** at limit **
   2  Index         2.4318        5.8958        .50000        .16797E-04
   3  Normalizat    .96869        .11208E-02    .22624E-03   -.36532E-04
   4  Prefactor     .81360        .13457E-02    .29264E-03   -.22299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102355
  Index      = 2.43178
  Normalizat = 0.968691
  Prefactor  = 0.813598
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.806     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10236E-03    44.402        .26904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4318        5.9332        .50000       -.53943    
   3  Normalizat    .96869        .73592E-02    .90498E-05   -.94087    
   4  Prefactor     .81360        .88357E-02    .11706E-04   -.99229    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.83588e-09
Minuit parameter uncertainties:
  1  0.0204675
  2  191.049
  3  0.00735921
  4  0.00883572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833488': 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) = 5280.80555621
delta logL = -8.89521288627e-07

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.024e-04  2.047e-02  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.432e+00  1.910e+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:  8.136e-01  8.836e-03  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:  9.687e-01  7.359e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.296 37.064

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/833488/cmap_HighResolution_479347201_479606401_4FGL_J1129.1+3703_daily_bin926.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', job_status='DONE', photon_flux_upper_limit='5.90e-08', time_completed='2021-09-03 23:21:17.324682', job_id='833488', GAL2='0.81', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630736477.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-8.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='926' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:21:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 833488: <4FGL_J1129.1+3703_daily_bin926> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin926 172.296 37.0644 479347201 479606401 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 :                                   869.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            895 sec.

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

