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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1402
RA = 172.296, Dec = 37.0644
tmin = 602726401, tmax = 602985601
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='835323', job_status='RUN', time_executed='2021-09-03 23:13:55.785429', time_epoch_executed='1630736035.79' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835323/ft1_4FGL_J1129.1+3703_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835323/ft2_4FGL_J1129.1+3703_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835323/ft1_4FGL_J1129.1+3703_daily_bin1402.fits outfile=/scratch/kocevski/835323/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1402.fits ra=172.296 dec=37.0644 rad=12.0 tmin=602726401.0 tmax=602985601.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.17
user 2.91
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835323/ft1_filtered_4FGL_J1129.1+3703_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/835323/ft2_4FGL_J1129.1+3703_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/835323/ltcube_602726401_602985601_4FGL_J1129.1+3703_daily_bin1402.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/835323/ft2_4FGL_J1129.1+3703_daily_bin1402.fits
.....................!
real 15.42
user 15.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835323/ft1_filtered_4FGL_J1129.1+3703_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/835323/ft2_4FGL_J1129.1+3703_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/835323/ltcube_602726401_602985601_4FGL_J1129.1+3703_daily_bin1402.fits outfile=/scratch/kocevski/835323/expmap_602726401_602985601_4FGL_J1129.1+3703_daily_bin1402.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/835323/ltcube_602726401_602985601_4FGL_J1129.1+3703_daily_bin1402.fits
.....................!
real 191.46
user 186.03
sys 4.77

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/835323/ft1_filtered_4FGL_J1129.1+3703_daily_bin1402.fits scfile=/scratch/kocevski/835323/ft2_4FGL_J1129.1+3703_daily_bin1402.fits outfile=/scratch/kocevski/835323/cmap_602726401_602985601_4FGL_J1129.1+3703_daily_bin1402.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835323/ft1_filtered_4FGL_J1129.1+3703_daily_bin1402.fits scfile=/scratch/kocevski/835323/ft2_4FGL_J1129.1+3703_daily_bin1402.fits outfile=/scratch/kocevski/835323/cmap_HighResolution_602726401_602985601_4FGL_J1129.1+3703_daily_bin1402.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=172.296 yref=37.0644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0218       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.342       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0657       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .88519       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35533       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14417E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12115E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.445       1.0000         .10000E-03   10000.    
    12 'norm      '    .13219E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .12294E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.359       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6892       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.338       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15367       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    94.162       1.0000         .10000E-03   10000.    
    21 'norm      '    .72141       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.674       1.0000         .10000E-03   10000.    
    23 'norm      '    .16829E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    157.41       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .52166E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    3.4242       1.0000         .10000E-03   10000.    
    27 'Prefactor '    95.688       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94038       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .49487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   905.8554     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3350 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6473        15.079        .34376E-05    .33447E-02
   2  Prefactor    10000.0        1123.6        .18852E-06** at limit **
   3  Prefactor     6499.6        7271.0       -.26068E-03   -.27060E-04
   4  Prefactor     .32918E-02    6575.8       -.14912E-04    .77646E-03
   5  Prefactor     .10000E-03    299.95       -.31861E-05** at limit **
   6  Prefactor     .46253E-01    220.79       -.55919E-05    .74057E-02
   7  Prefactor     .10000E-03    67.559        .26371E-06** at limit **
   8  norm          .10000E-03    1.2092       -.29347E-06** at limit **
   9  Prefactor     .10000E-03    11.498       -.79716E-06** at limit **
  10  Prefactor     .10000E-03    54.900       -.12184E-05** at limit **
  11  Prefactor     .10418E-03    92.395        .94420E-05** at limit **
  12  norm          .10000E-03    47.922       -.76127E-05** at limit **
  13  norm          .10000E-03    24.383        .48456E-06** at limit **
  14  Prefactor     17.386        19.674        .79710E-06    .14059E-03
  15  Prefactor     .18688E-03    1128.2        .62771E-06** at limit **
  16  Prefactor     29.851        66.852       -.52738E-06    .90457E-03
  17  norm          2.5756        19.715       -.98262E-05   -.89356E-04
  18  Prefactor     .10001E-03    270.90       -.12045E-04** at limit **
  19  Prefactor     .10000E-03    33.385        .40740E-05** at limit **
  20  Prefactor     108.37        188.46        .44247E-05    .54416E-02
  21  norm          .52434        6.7368       -.16375E-05    .89417E-04
  22  Prefactor     28.706        54.042       -.18063E-06   -.20480E-03
  23  norm          .10000E-03    44.077       -.51871E-06** at limit **
  24  Prefactor     153.34        99.056       -.22365E-08   -.21076E-01
  25  Prefactor     .10000E-03    195.20        .95672E-05** at limit **
  26  norm          3.6426        3.0619       -.25322E-06   -.21578E-03
  27  Prefactor     110.10        96.287       -.21765E-06    .70587E-02
  28  Prefactor     .10000E-03    15.668       -.49569E-06** at limit **
  29  Normalizat    .62757        .59449        .22264E-05   -.60931E-04
  30  Prefactor     .63286        .60852       -.56599E-05   -.48350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.64731
  Prefactor  = 10000
  Prefactor  = 6499.57
  Prefactor  = 0.00329179
  Prefactor  = 0.0001
  Prefactor  = 0.0462525
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104183
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 17.3864
  Prefactor  = 0.000186884
  Prefactor  = 29.8506
  norm       = 2.57555
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 108.37
  norm       = 0.524343
  Prefactor  = 28.7056
  norm       = 0.0001
  Prefactor  = 153.343
  Prefactor  = 0.000100001
  norm       = 3.64258
  Prefactor  = 110.095
  Prefactor  = 0.0001
  Normalizat = 0.627571
  Prefactor  = 0.632859
 **********
 **   18 **HESSE 
 **********

 FCN=   905.8554     FROM HESSE     STATUS=OK           632 CALLS     3982 TOTAL
                     EDM=   .25E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6473        8609.0        .35391E-02   -1.5087    
   2  Prefactor    10000.0        1149.1        .31149E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6499.6        7109.7        .57920E-02    .30460    
   4  Prefactor     .32918E-02    6606.2        .12754E-01   -1.5697    
   5  Prefactor     .10000E-03    293.70        .10665E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .46253E-01    1381.7        .48740E-02   -1.5665    
   7  Prefactor     .10000E-03    66.809        .10251E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.923        .90835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10418E-03    88.760        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    46.541        .90890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    23.751        .90844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.386        20.219        .21667E-02   -1.6542    
  15  Prefactor     .18688E-03    1160.0        .52568E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.851        67.252        .17894E-02   -1.4615    
  17  norm          2.5756        20.673        .65373E-02   -1.5387    
  18  Prefactor     .10001E-03    290.38        .97641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     108.37        182.59        .10354E-02   -1.3622    
  21  norm          .52434        4.9235        .12144E-01   -1.5853    
  22  Prefactor     28.706        53.937        .18705E-02   -1.6780    
  23  norm          .10000E-03    44.839        .91069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     153.34        103.18        .80340E-03   -1.3225    
  25  Prefactor     .10000E-03    197.26        .92806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6426        3.0255        .54649E-02   -1.5326    
  27  Prefactor     110.10        96.582        .10272E-02   -1.3606    
  28  Prefactor     .10000E-03    15.905        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .62757        .50322        .67613E-01   -1.0683    
  30  Prefactor     .63286        .50936        .72592E-01   -1.0622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000245957
Minuit parameter uncertainties:
  1  1338.89
  2  0.0951017
  3  13694.3
  4  6.81526
  5  0.000208644
  6  16.3636
  7  0.000172383
  8  5.62231e-06
  9  1.6686e-05
  10  1.52604e-06
  11  0.0385937
  12  0.00053617
  13  1.6824e-08
  14  20.2273
  15  0.6479
  16  67.4236
  17  14.6004
  18  0.00377852
  19  3.306e-06
  20  183.552
  21  3.21351
  22  54.0287
  23  4.32819e-05
  24  103.304
  25  0.000757836
  26  3.02558
  27  96.7201
  28  6.61663e-05
  29  0.506962
  30  0.51315
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.869e-04  6.479e-01  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:  6.329e-01  5.132e-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:  6.276e-01  5.070e-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: 4.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835323/likelihoodResults_602726401_602985601_4FGL_J1129.1+3703_daily_bin1402.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) = 905.855403742
delta logL = -3.90014929508e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 905.855399817
delta logL = 2.51725396083e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1573       1.0000          .0000       10.000    
     3 'Normalizat'    .62758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63287       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=   905.6364     FROM MIGRAD    STATUS=CONVERGED    179 CALLS      364 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.312        780.65        .18142E-01    .95867E-04
   2  Index         3.4023        6.6859        .86860E-01    .94943E-05
   3  Normalizat    .56002        .13305        .29918E-02   -.58659E-04
   4  Prefactor     .67059        .14160        .32137E-02   -.68551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3124
  Index      = 3.4023
  Normalizat = 0.560021
  Prefactor  = 0.670591
 **********
 **   18 **HESSE 
 **********

 FCN=   905.6364     FROM HESSE     STATUS=OK            29 CALLS      393 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.312        118.19        .16258E-03   -1.5035    
   2  Index         3.4023        2.3662        .32523E-02   -.32524    
   3  Normalizat    .56002        .53817        .11967E-03   -1.0971    
   4  Prefactor     .67059        .57968        .12855E-03   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6751e-10
Minuit parameter uncertainties:
  1  73.3172
  2  2.47754
  3  0.543307
  4  0.585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835323': 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) = 905.636367815
delta logL = 0.219032027014

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.131e+01  7.332e+01  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  3.402e+00  2.478e+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:  6.706e-01  5.850e-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:  5.600e-01  5.433e-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/835323/cmap_HighResolution_602726401_602985601_4FGL_J1129.1+3703_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-02', job_status='DONE', photon_flux_upper_limit='4.64e-07', time_completed='2021-09-03 23:21:10.914116', job_id='835323', GAL2='0.67', fit_tolerance='1e-08', EG2='0.56', EG='0.63', time_epoch_completed='1630736470.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.19e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1402' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:21:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 835323: <4FGL_J1129.1+3703_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin1402> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 23:11:30 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 23:11:41 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:11:41 2021
Terminated at Fri Sep  3 23:21:11 2021
Results reported at Fri Sep  3 23:21:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1402 172.296 37.0644 602726401 602985601 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 :                                   419.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            581 sec.

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

