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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1044
RA = 172.296, Dec = 37.0644
tmin = 509932801, tmax = 510192001
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='833665', job_status='RUN', time_executed='2021-09-03 23:07:02.559131', time_epoch_executed='1630735622.56' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833665/ft1_4FGL_J1129.1+3703_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833665/ft2_4FGL_J1129.1+3703_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833665/ft1_4FGL_J1129.1+3703_daily_bin1044.fits outfile=/scratch/kocevski/833665/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1044.fits ra=172.296 dec=37.0644 rad=12.0 tmin=509932801.0 tmax=510192001.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.54
user 3.31
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833665/ft1_filtered_4FGL_J1129.1+3703_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/833665/ft2_4FGL_J1129.1+3703_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/833665/ltcube_509932801_510192001_4FGL_J1129.1+3703_daily_bin1044.fits outfile=/scratch/kocevski/833665/expmap_509932801_510192001_4FGL_J1129.1+3703_daily_bin1044.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/833665/ltcube_509932801_510192001_4FGL_J1129.1+3703_daily_bin1044.fits
.....................!
real 193.12
user 186.60
sys 5.75

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/833665/ft1_filtered_4FGL_J1129.1+3703_daily_bin1044.fits scfile=/scratch/kocevski/833665/ft2_4FGL_J1129.1+3703_daily_bin1044.fits outfile=/scratch/kocevski/833665/cmap_509932801_510192001_4FGL_J1129.1+3703_daily_bin1044.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833665/ft1_filtered_4FGL_J1129.1+3703_daily_bin1044.fits scfile=/scratch/kocevski/833665/ft2_4FGL_J1129.1+3703_daily_bin1044.fits outfile=/scratch/kocevski/833665/cmap_HighResolution_509932801_510192001_4FGL_J1129.1+3703_daily_bin1044.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.074       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2930       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13964E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    128.65       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0841       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5116       1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5512       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1251       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5301       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.674       1.0000         .10000E-03   10000.    
    21 'norm      '    3.3348       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13540E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.2401       1.0000         .10000E-03   10000.    
    26 'norm      '    3.2091       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.1467       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.3653       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97948       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71643       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=   5576.225     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3941 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.089        35.130       -.21942E-05   -.21171E-03
   2  Prefactor     2.2932        4.1977        .22990E-06   -.13182E-03
   3  Prefactor     .10001E-03    5.6214        .21260E-05** at limit **
   4  Prefactor     .10000E-03    14.673       -.10356E-06** at limit **
   5  Prefactor     .10000E-03    89.601        .54304E-06** at limit **
   6  Prefactor     128.57        95.657       -.62100E-05   -.27708E-03
   7  Prefactor     .10000E-03    2.5569        .30288E-07** at limit **
   8  norm          1.0842        .35690        .18266E-08   -.39183E-03
   9  Prefactor     .10000E-03    .78520        .67397E-07** at limit **
  10  Prefactor     19.630        18.275       -.22639E-06   -.50563E-04
  11  Prefactor     6.5094        15.321        .27520E-06   -.12242E-04
  12  norm          .10000E-03    3.9159        .55013E-07** at limit **
  13  norm          .10000E-03    8.0619        .18318E-06** at limit **
  14  Prefactor     1.5508        1.9402       -.10781E-07    .84634E-05
  15  Prefactor     .10000E-03    38.831       -.21354E-05** at limit **
  16  Prefactor     .10000E-03    10.059        .24933E-06** at limit **
  17  norm          3.1248        1.9156       -.94574E-08    .29743E-04
  18  Prefactor     13.874        11.987        .56427E-07   -.52341E-05
  19  Prefactor     6.5284        5.6470        .43264E-06    .16362E-03
  20  Prefactor     21.659        35.386       -.11236E-05   -.67042E-04
  21  norm          3.3348        1.2730        .44339E-07   -.29179E-04
  22  Prefactor     .10000E-03    22.326        .75402E-06** at limit **
  23  norm          .10000E-03    4.7453        .21229E-07** at limit **
  24  Prefactor     .10000E-03    49.952        .22542E-05** at limit **
  25  Prefactor     5.2412        33.691        .64624E-06   -.15976E-05
  26  norm          3.2086        1.3388        .40087E-07   -.36492E-04
  27  Prefactor     6.1250        49.564       -.67425E-05   -.75363E-04
  28  Prefactor     5.3599        9.6140        .55817E-05   -.33665E-03
  29  Normalizat    .97987        .17434        .15236E-05   -.38760E-03
  30  Prefactor     .71605        .18897       -.30200E-05   -.75305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.0892
  Prefactor  = 2.29316
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.566
  Prefactor  = 0.0001
  norm       = 1.08418
  Prefactor  = 0.0001
  Prefactor  = 19.6301
  Prefactor  = 6.50943
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.55078
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.1248
  Prefactor  = 13.8737
  Prefactor  = 6.52839
  Prefactor  = 21.6591
  norm       = 3.33485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.2412
  norm       = 3.20864
  Prefactor  = 6.12504
  Prefactor  = 5.3599
  Normalizat = 0.979869
  Prefactor  = 0.716055
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.225     FROM HESSE     STATUS=OK           588 CALLS     4529 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.089        33.060        .73060E-04   -1.4610    
   2  Prefactor     2.2932        4.1765        .19957E-03   -1.5405    
   3  Prefactor     .10001E-03    12.494        .31150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    91.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     128.57        99.566        .17748E-03   -1.3435    
   7  Prefactor     .10000E-03    2.5577        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0842        .35943        .22956E-04   -1.5500    
   9  Prefactor     .10000E-03    .78947        .64612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.630        18.321        .90384E-04   -1.4822    
  11  Prefactor     6.5094        15.365        .15727E-03   -1.5198    
  12  norm          .10000E-03    3.9243        .14430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5508        1.9023        .10888E-03   -1.5459    
  15  Prefactor     .10000E-03    39.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1248        1.9101        .77392E-04   -1.5354    
  18  Prefactor     13.874        11.999        .10752E-03   -1.4963    
  19  Prefactor     6.5284        5.6355        .15406E-03   -1.5197    
  20  Prefactor     21.659        35.568        .86035E-04   -1.4777    
  21  norm          3.3348        1.2785        .45984E-04   -1.5343    
  22  Prefactor     .10000E-03    22.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.7563        .15882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    50.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.2412        33.663        .17559E-03   -1.5250    
  26  norm          3.2086        1.3375        .53446E-04   -1.5350    
  27  Prefactor     6.1250        49.927        .16193E-03   -1.5213    
  28  Prefactor     5.3599        9.7577        .86749E-03   -1.5245    
  29  Normalizat    .97987        .20347        .22470E-03   -.93708    
  30  Prefactor     .71605        .21783        .29941E-03   -1.0290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87127e-09
Minuit parameter uncertainties:
  1  33.0799
  2  4.17707
  3  0.000650083
  4  2.00262e-05
  5  0.0001224
  6  99.6958
  7  2.92156e-07
  8  0.359431
  9  1.91605e-07
  10  18.3266
  11  15.3738
  12  1.25207e-06
  13  5.0962e-06
  14  1.9024
  15  0.000391912
  16  3.09132e-07
  17  1.91009
  18  12.0007
  19  5.63591
  20  35.6027
  21  1.27851
  22  6.5281e-05
  23  3.37166e-06
  24  0.000738553
  25  26.5874
  26  1.33754
  27  35.0144
  28  9.76059
  29  0.203631
  30  0.218093
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  3.919e-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:  7.161e-01  2.181e-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.799e-01  2.036e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833665/likelihoodResults_509932801_510192001_4FGL_J1129.1+3703_daily_bin1044.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) = 5576.2249
delta logL = -0.000121969937027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5576.22477832
delta logL = -2.91211108561e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3783       1.0000          .0000       10.000    
     3 'Normalizat'    .97987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71605       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=   5576.225     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6735        .90712E-02** at limit **
   2  Index         2.3451        6.0718        .50000        .80237E-05
   3  Normalizat    .97987        .20882E-02    .45914E-01   -.10190E-03
   4  Prefactor     .71605        .24255E-02    .67666E-01   -.56674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34506
  Normalizat = 0.979872
  Prefactor  = 0.716051
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.225     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    140.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3451        7.6519        .50000       -.55977    
   3  Normalizat    .97987        .84170E-02    .22470E-03   -.93708    
   4  Prefactor     .71605        .97646E-02    .29941E-03   -1.0290    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88495e-07
Minuit parameter uncertainties:
  1  0.000376678
  2  226.274
  3  0.00841704
  4  0.00976466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833665': 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) = 5576.22477825
delta logL = -2.21575646719e-07

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  3.767e-04  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.345e+00  2.263e+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:  7.161e-01  9.765e-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.799e-01  8.417e-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/833665/cmap_HighResolution_509932801_510192001_4FGL_J1129.1+3703_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2021-09-03 23:21:56.017409', job_id='833665', GAL2='0.72', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630736516.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-2.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1044' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:21:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 833665: <4FGL_J1129.1+3703_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1044 172.296 37.0644 509932801 510192001 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 :                                   886.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            923 sec.

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

