/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 4 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 = 7037
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1129.1+3703_daily_bin109
RA = 172.296, Dec = 37.0644
tmin = 267580801, tmax = 267840001
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='826319', job_status='RUN', time_executed='2021-09-03 22:46:36.240632', time_epoch_executed='1630734396.24' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826319

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826319/ft1_4FGL_J1129.1+3703_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826319/ft2_4FGL_J1129.1+3703_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826319/ft1_4FGL_J1129.1+3703_daily_bin109.fits outfile=/scratch/kocevski/826319/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin109.fits ra=172.296 dec=37.0644 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.42
user 1.24
sys 0.16

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826319/ft1_filtered_4FGL_J1129.1+3703_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/826319/ft2_4FGL_J1129.1+3703_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/826319/ltcube_267580801_267840001_4FGL_J1129.1+3703_daily_bin109.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/826319/ft2_4FGL_J1129.1+3703_daily_bin109.fits
.....................!
real 17.24
user 16.80
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826319/ft1_filtered_4FGL_J1129.1+3703_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/826319/ft2_4FGL_J1129.1+3703_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/826319/ltcube_267580801_267840001_4FGL_J1129.1+3703_daily_bin109.fits outfile=/scratch/kocevski/826319/expmap_267580801_267840001_4FGL_J1129.1+3703_daily_bin109.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/826319/ltcube_267580801_267840001_4FGL_J1129.1+3703_daily_bin109.fits
.....................!
real 191.49
user 186.22
sys 4.66

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/826319/ft1_filtered_4FGL_J1129.1+3703_daily_bin109.fits scfile=/scratch/kocevski/826319/ft2_4FGL_J1129.1+3703_daily_bin109.fits outfile=/scratch/kocevski/826319/cmap_267580801_267840001_4FGL_J1129.1+3703_daily_bin109.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826319/ft1_filtered_4FGL_J1129.1+3703_daily_bin109.fits scfile=/scratch/kocevski/826319/ft2_4FGL_J1129.1+3703_daily_bin109.fits outfile=/scratch/kocevski/826319/cmap_HighResolution_267580801_267840001_4FGL_J1129.1+3703_daily_bin109.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.59
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.313       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9652       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12383E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14581E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8411       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0641       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5816       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.063       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.522       1.0000         .10000E-03   10000.    
    17 'norm      '    6.6997       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8040       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .74820       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.6567       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.910       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.1160       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.035       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.5468       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97494       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87642       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=   4718.101     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3858 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.342        38.418       -.14061E-06   -.50493E-04
   2  Prefactor     4.9657        6.3471        .34906E-06   -.49415E-04
   3  Prefactor     .10000E-03    8.8966        .32023E-05** at limit **
   4  Prefactor     .10000E-03    30.608        .52670E-06** at limit **
   5  Prefactor     .10000E-03    10.070        .60889E-07** at limit **
   6  Prefactor     .10000E-03    595.50       -.24288E-04** at limit **
   7  Prefactor     .10000E-03    5.0798       -.11765E-07** at limit **
   8  norm          1.8411        .43690       -.29924E-07   -.44955E-03
   9  Prefactor     5.0641        3.6075        .23223E-06   -.49032E-04
  10  Prefactor     1.5721        52.745        .52985E-05    .16285E-05
  11  Prefactor     .10000E-03    5.9711       -.52926E-07** at limit **
  12  norm          14.067        17.100       -.36557E-06   -.57571E-04
  13  norm          .10000E-03    3.5225       -.33891E-08** at limit **
  14  Prefactor     .10000E-03    1.1821        .15150E-07** at limit **
  15  Prefactor     .10000E-03    15.100       -.10697E-07** at limit **
  16  Prefactor     11.521        11.362        .91101E-08   -.14063E-04
  17  norm          6.6996        3.0329        .75977E-07   -.68292E-04
  18  Prefactor     9.8034        10.609        .11897E-05   -.51776E-04
  19  Prefactor     .10000E-03    3.8197        .63260E-07** at limit **
  20  Prefactor     .10000E-03    19.755       -.19746E-07** at limit **
  21  norm          .74823        .67833        .38624E-07    .42626E-04
  22  Prefactor     .10000E-03    7.0367       -.51375E-07** at limit **
  23  norm          8.6573        8.7692        .98079E-07   -.40815E-05
  24  Prefactor     12.914        28.813        .10981E-05   -.10943E-04
  25  Prefactor     .10000E-03    19.600       -.12232E-07** at limit **
  26  norm          1.1160        .94242        .66054E-07   -.66058E-04
  27  Prefactor     15.054        30.865        .21617E-06    .74791E-05
  28  Prefactor     1.5505        12.180        .31688E-05   -.16555E-04
  29  Normalizat    .97496        .19931       -.23748E-05   -.34205E-04
  30  Prefactor     .87637        .21794       -.37982E-06   -.10163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.3422
  Prefactor  = 4.96571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.84114
  Prefactor  = 5.06414
  Prefactor  = 1.57212
  Prefactor  = 0.0001
  norm       = 14.0667
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5213
  norm       = 6.69959
  Prefactor  = 9.80337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.748227
  Prefactor  = 0.0001
  norm       = 8.6573
  Prefactor  = 12.9139
  Prefactor  = 0.0001
  norm       = 1.116
  Prefactor  = 15.0542
  Prefactor  = 1.55049
  Normalizat = 0.97496
  Prefactor  = 0.876372
 **********
 **   18 **HESSE 
 **********

 FCN=   4718.101     FROM HESSE     STATUS=OK           592 CALLS     4450 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.342        38.361        .29147E-03   -1.4331    
   2  Prefactor     4.9657        6.3496        .18048E-03   -1.5262    
   3  Prefactor     .10000E-03    9.1598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    605.16        .40986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0890        .15117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8411        .43467        .20411E-04   -1.5437    
   9  Prefactor     5.0641        3.6114        .10466E-03   -1.5258    
  10  Prefactor     1.5721        51.375        .33768E-03   -1.5457    
  11  Prefactor     .10000E-03    5.9747        .16393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.067        16.793        .10681E-03   -1.4958    
  13  norm          .10000E-03    3.5254        .12591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1972        .72828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.521        11.365        .11802E-03   -1.5029    
  17  norm          6.6996        3.0314        .76950E-04   -1.5190    
  18  Prefactor     9.8034        10.600        .63990E-03   -1.5082    
  19  Prefactor     .10000E-03    3.8741        .13099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .74823        .71112        .52003E-03   -1.5535    
  22  Prefactor     .10000E-03    7.0509        .17798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.6573        8.7729        .13624E-03   -1.5119    
  24  Prefactor     12.914        28.817        .11148E-03   -1.4989    
  25  Prefactor     .10000E-03    19.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1160        .95183        .59165E-04   -1.5497    
  27  Prefactor     15.054        30.798        .10330E-03   -1.4932    
  28  Prefactor     1.5505        12.252        .34261E-03   -1.5459    
  29  Normalizat    .97496        .23523        .23459E-03   -.93874    
  30  Prefactor     .87637        .25974        .29092E-03   -.96972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02308e-10
Minuit parameter uncertainties:
  1  38.3807
  2  6.35048
  3  2.73559e-05
  4  4.61304e-05
  5  1.87466e-05
  6  0.00159583
  7  2.18648e-07
  8  0.434675
  9  3.61157
  10  17.9904
  11  6.44222e-06
  12  16.7988
  13  2.17504e-06
  14  2.67151e-06
  15  1.668e-06
  16  11.3667
  17  3.03145
  18  10.6019
  19  8.35587e-06
  20  1.11936e-05
  21  0.711128
  22  7.48278e-06
  23  8.77416
  24  28.8477
  25  1.36074e-06
  26  0.951847
  27  30.8306
  28  8.71928
  29  0.235483
  30  0.260109
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  8.764e-01  2.601e-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.750e-01  2.355e-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.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/826319/likelihoodResults_267580801_267840001_4FGL_J1129.1+3703_daily_bin109.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) = 4718.10099239
delta logL = -0.000314732035804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4717.69413883
delta logL = 0.406538828744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.9719       1.0000          .0000       10.000    
     3 'Normalizat'    .91935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92087       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=   4717.694     FROM MIGRAD    STATUS=CONVERGED    145 CALLS      452 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10909E-02    .10886E-04** at limit **
   2  Index         6.9716        .41035        .46674E-02    .64106E-03
   3  Normalizat    .91926        .22475        .24043E-03    .15174E-03
   4  Prefactor     .92104        .26268        .28431E-03    .18398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.97164
  Normalizat = 0.919257
  Prefactor  = 0.921038
 **********
 **   18 **HESSE 
 **********

 FCN=   4717.694     FROM HESSE     STATUS=OK            25 CALLS      477 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .10849E-02    .21773E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9716        .40467        .93348E-03    .40534    
   3  Normalizat    .91926        .22474        .96171E-05   -.95787    
   4  Prefactor     .92104        .26283        .11373E-04   -.95410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59352e-10
Minuit parameter uncertainties:
  1  1.98841e-08
  2  0.405192
  3  0.224973
  4  0.263189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826319': 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) = 4717.69413769
delta logL = 0.406539966614

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.988e-08  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  6.972e+00  4.052e-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.210e-01  2.632e-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.193e-01  2.250e-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/826319/cmap_HighResolution_267580801_267840001_4FGL_J1129.1+3703_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-03 23:00:00.020019', job_id='826319', GAL2='0.92', fit_tolerance='1e-08', EG2='0.92', EG='0.97', time_epoch_completed='1630735200.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.07e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='109' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:00:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 826319: <4FGL_J1129.1+3703_daily_bin109> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin109> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 22:46:19 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:46:23 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:46:23 2021
Terminated at Fri Sep  3 23:00:00 2021
Results reported at Fri Sep  3 23:00:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin109 172.296 37.0644 267580801 267840001 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.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            821 sec.

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

