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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1003
RA = 172.296, Dec = 37.0644
tmin = 499305601, tmax = 499564801
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='833605', job_status='RUN', time_executed='2021-09-03 23:09:59.214158', time_epoch_executed='1630735799.21' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833605/ft1_4FGL_J1129.1+3703_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833605/ft2_4FGL_J1129.1+3703_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833605/ft1_4FGL_J1129.1+3703_daily_bin1003.fits outfile=/scratch/kocevski/833605/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1003.fits ra=172.296 dec=37.0644 rad=12.0 tmin=499305601.0 tmax=499564801.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 4.52
user 4.20
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833605/ft1_filtered_4FGL_J1129.1+3703_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/833605/ft2_4FGL_J1129.1+3703_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/833605/ltcube_499305601_499564801_4FGL_J1129.1+3703_daily_bin1003.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/833605/ft2_4FGL_J1129.1+3703_daily_bin1003.fits
.....................!
real 13.62
user 13.30
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833605/ft1_filtered_4FGL_J1129.1+3703_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/833605/ft2_4FGL_J1129.1+3703_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/833605/ltcube_499305601_499564801_4FGL_J1129.1+3703_daily_bin1003.fits outfile=/scratch/kocevski/833605/expmap_499305601_499564801_4FGL_J1129.1+3703_daily_bin1003.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/833605/ltcube_499305601_499564801_4FGL_J1129.1+3703_daily_bin1003.fits
.....................!
real 157.91
user 151.79
sys 4.41

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/833605/ft1_filtered_4FGL_J1129.1+3703_daily_bin1003.fits scfile=/scratch/kocevski/833605/ft2_4FGL_J1129.1+3703_daily_bin1003.fits outfile=/scratch/kocevski/833605/cmap_499305601_499564801_4FGL_J1129.1+3703_daily_bin1003.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.50
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833605/ft1_filtered_4FGL_J1129.1+3703_daily_bin1003.fits scfile=/scratch/kocevski/833605/ft2_4FGL_J1129.1+3703_daily_bin1003.fits outfile=/scratch/kocevski/833605/cmap_HighResolution_499305601_499564801_4FGL_J1129.1+3703_daily_bin1003.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.522       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11274E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .96490       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .96818       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.1044       1.0000         .10000E-03   10000.    
    13 'norm      '    18.094       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5081       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37985E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.782       1.0000         .10000E-03   10000.    
    17 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .44276       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9309       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.678       1.0000         .10000E-03   10000.    
    26 'norm      '    6.1654       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3929       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .44776       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=   3887.657     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     4034 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.521        24.936       -.12412E-05   -.20516E-05
   2  Prefactor     .10000E-03    2.3030       -.12949E-06** at limit **
   3  Prefactor     .10000E-03    3.7605       -.19906E-06** at limit **
   4  Prefactor     .10000E-03    11.553       -.47667E-05** at limit **
   5  Prefactor     20.576        34.415       -.95083E-05   -.45262E-06
   6  Prefactor     .10000E-03    48.313        .71031E-05** at limit **
   7  Prefactor     .10000E-03    4.0547        .20087E-06** at limit **
   8  norm          .96492        .33136       -.69839E-07    .35371E-03
   9  Prefactor     .96805        2.1836       -.46240E-06   -.62896E-03
  10  Prefactor     .10000E-03    5.4408        .16708E-05** at limit **
  11  Prefactor     .10000E-03    6.1911       -.17659E-05** at limit **
  12  norm          8.1043        17.282       -.31667E-05   -.17100E-04
  13  norm          18.097        17.059       -.73233E-06   -.48827E-04
  14  Prefactor     1.5016        3.1677       -.84445E-06   -.50737E-04
  15  Prefactor     .10000E-03    133.15       -.26546E-04** at limit **
  16  Prefactor     12.759        23.546       -.11694E-04   -.32722E-04
  17  norm          .10000E-03    2.6413       -.42975E-06** at limit **
  18  Prefactor     .10000E-03    8.8037        .31400E-05** at limit **
  19  Prefactor     .46395        5.4995       -.67727E-06   -.13045E-03
  20  Prefactor     .10000E-03    41.924       -.10027E-04** at limit **
  21  norm          2.9308        1.7936        .73400E-05   -.29533E-02
  22  Prefactor     .10000E-03    56.244        .11699E-04** at limit **
  23  norm          .10000E-03    4.6491       -.38085E-06** at limit **
  24  Prefactor     .10000E-03    17.610        .13258E-04** at limit **
  25  Prefactor     28.525        86.622       -.25307E-03    .13150E-03
  26  norm          6.1655        2.0798       -.36314E-06   -.32208E-03
  27  Prefactor     .10000E-03    20.873       -.12169E-04** at limit **
  28  Prefactor     .10000E-03    4.6903        .28880E-06** at limit **
  29  Normalizat    1.3925        .22734        .71865E-06    .12631E-03
  30  Prefactor     .44811        .25376        .18946E-04    .17475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.964921
  Prefactor  = 0.96805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.10429
  norm       = 18.0971
  Prefactor  = 1.50158
  Prefactor  = 0.0001
  Prefactor  = 12.7587
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.463946
  Prefactor  = 0.0001
  norm       = 2.93082
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 28.525
  norm       = 6.16548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.39252
  Prefactor  = 0.448114
 **********
 **   18 **HESSE 
 **********

 FCN=   3887.657     FROM HESSE     STATUS=OK           582 CALLS     4616 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.521        24.892        .93063E-04   -1.4847    
   2  Prefactor     .10000E-03    2.3122        .92404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7896        .11783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.576        34.409        .88285E-04   -1.4800    
   6  Prefactor     .10000E-03    48.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0564        .12262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .96492        .33222        .20385E-04   -1.5512    
   9  Prefactor     .96805        1.7960        .13382E-02   -1.5511    
  10  Prefactor     .10000E-03    5.4438        .14202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1965        .15152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.1043        17.244        .14083E-03   -1.5139    
  13  norm          18.097        17.081        .94158E-04   -1.4857    
  14  Prefactor     1.5016        3.0893        .14243E-03   -1.5463    
  15  Prefactor     .10000E-03    133.34        .21287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.759        23.518        .11204E-03   -1.4993    
  17  norm          .10000E-03    2.6942        .19684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8180        .18062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .46395        33.798        .25450E-02   -1.5572    
  20  Prefactor     .10000E-03    42.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9308        1.7941        .54681E-04   -1.5366    
  22  Prefactor     .10000E-03    56.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.6501        .13129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.525        86.754        .74813E-04   -1.4639    
  26  norm          6.1655        2.0799        .50296E-04   -1.5211    
  27  Prefactor     .10000E-03    20.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.7015        .13188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3925        .25874        .20644E-03   -.80845    
  30  Prefactor     .44811        .28158        .38958E-03   -1.1442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85173e-09
Minuit parameter uncertainties:
  1  24.9059
  2  1.14512e-05
  3  1.84727e-05
  4  1.50498e-05
  5  34.4424
  6  0.000102383
  7  5.85091e-06
  8  0.33222
  9  1.79606
  10  5.50302e-06
  11  7.45073e-06
  12  17.2546
  13  17.0857
  14  3.0896
  15  0.000116529
  16  23.5345
  17  5.29104e-05
  18  3.10178e-05
  19  7.92355
  20  3.73273e-05
  21  1.79409
  22  0.00043371
  23  0.000120022
  24  3.79889e-05
  25  87.1417
  26  2.07988
  27  5.56395e-05
  28  2.04076e-05
  29  0.258982
  30  0.28246
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.165e-04  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  4.481e-01  2.825e-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.393e+00  2.590e-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: 9.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833605/likelihoodResults_499305601_499564801_4FGL_J1129.1+3703_daily_bin1003.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) = 3887.65670166
delta logL = -3.56128662133e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3887.65666618
delta logL = -1.32059540192e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1359       1.0000          .0000       10.000    
     3 'Normalizat'    1.3925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44811       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=   3886.587     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      301 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28404        8.4200        .55165E-02    .12718E-02
   2  Index         4.4871        3.0812        .73143E-01    .13545E-04
   3  Normalizat    1.2869        .18220        .48081E-01   -.60096E-03
   4  Prefactor     .52238        .17078        .81723E-01   -.49702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.284042
  Index      = 4.48705
  Normalizat = 1.28685
  Prefactor  = 0.522382
 **********
 **   18 **HESSE 
 **********

 FCN=   3886.587     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      330 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28404        8.5128        .24907E-04   -1.5815    
   2  Index         4.4871        3.5344        .28369E-02   -.10277    
   3  Normalizat    1.2869        .23057        .21256E-03   -.83960    
   4  Prefactor     .52238        .25608        .36203E-03   -1.1096    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63791e-09
Minuit parameter uncertainties:
  1  3.10991
  2  3.93116
  3  0.230758
  4  0.256646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833605': 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) = 3886.58701451
delta logL = 1.06965153687

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  2.840e-01  3.110e+00  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  4.487e+00  3.931e+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:  5.224e-01  2.566e-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.287e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 172.296 37.064
Photon Index (Free Index): 4.49 +/- 3.93
Photon Flux (Free Index): 9.62e-08 +/- 2.11e-06
Energy Flux (Free Index): 1.35e-05 +/- 2.90e-04

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/833605/cmap_HighResolution_499305601_499564801_4FGL_J1129.1+3703_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='1.07e+00', photon_flux2='9.62e-08', job_status='DONE', time_completed='2021-09-03 23:20:15.665153', photon_index_error2='3.93', photon_index2='4.49', ts='-0.00', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='2.90e-04', EG='1.39', time_epoch_completed='1630736415.67', return_code='0', job_id='833605', GAL2='0.52', EG2='1.29', return_code2='102', photon_flux_error2='2.11e-06', ts2='2.24', photon_index='2.17' WHERE bin_id='1003' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:20:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 833605: <4FGL_J1129.1+3703_daily_bin1003> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1003 172.296 37.0644 499305601 499564801 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 :                                   608.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             212.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            826 sec.

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

