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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin73
RA = 172.38, Dec = 30.5789
tmin = 258249601, tmax = 258508801
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='873257', job_status='RUN', time_executed='2021-09-04 01:20:00.917678', time_epoch_executed='1630743600.92' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873257

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873257/ft1_4FGL_J1129.5+3034_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873257/ft1_4FGL_J1129.5+3034_daily_bin73.fits outfile=/scratch/kocevski/873257/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin73.fits ra=172.38 dec=30.5789 rad=12.0 tmin=258249601.0 tmax=258508801.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 2.04
user 0.98
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.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/873257/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/873257/ft1_filtered_4FGL_J1129.5+3034_daily_bin73.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873257/ft1_filtered_4FGL_J1129.5+3034_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/873257/ltcube_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.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/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits
.....................!
real 13.98
user 13.51
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873257/ft1_filtered_4FGL_J1129.5+3034_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/873257/ltcube_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.fits outfile=/scratch/kocevski/873257/expmap_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.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/873257/ltcube_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.fits
.....................!
real 191.80
user 186.54
sys 4.43

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1129.5+3034 @ 172.38 30.5789

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/873257/ft1_filtered_4FGL_J1129.5+3034_daily_bin73.fits scfile=/scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits outfile=/scratch/kocevski/873257/cmap_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.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.38 yref=30.5789 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/873257/ft1_filtered_4FGL_J1129.5+3034_daily_bin73.fits scfile=/scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits outfile=/scratch/kocevski/873257/cmap_HighResolution_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.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.38 yref=30.5789 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/873257/ft1_filtered_4FGL_J1129.5+3034_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/873257/Model_4FGL_J1129.5+3034_daily_bin73.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/873257/ft1_filtered_4FGL_J1129.5+3034_daily_bin73.fits.....................!
real 38.14
user 36.35
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/873257/ft1_filtered_4FGL_J1129.5+3034_daily_bin73.fits', '/scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits', expMap='/scratch/kocevski/873257/expmap_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.fits', expCube='/scratch/kocevski/873257/ltcube_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/873257/Model_4FGL_J1129.5+3034_daily_bin73.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.5+3034'

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.468e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/873257/ft1_filtered_4FGL_J1129.5+3034_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/873257/ft2_4FGL_J1129.5+3034_daily_bin73.fits
Exposure map: /scratch/kocevski/873257/expmap_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.fits
Exposure cube: /scratch/kocevski/873257/ltcube_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/873257/Model_4FGL_J1129.5+3034_daily_bin73.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) = 3551.08492671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21039E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.307       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.851       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0609       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6604       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4649       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1706       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.170       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8463       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .58987E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.983       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3474       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13951E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.9586       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .44392E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68445       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3551.084     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     4463 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.612        .11885E-05** at limit **
   2  Prefactor     .10157E-03    32.878       -.79291E-05** at limit **
   3  Prefactor     .10000E-03    4.3295       -.12739E-08** at limit **
   4  Prefactor     12.294        18.186       -.41119E-06    .58453E-04
   5  norm          1.1718        .39142       -.34973E-07   -.16337E-02
   6  Prefactor     1.7640        2.2185        .27147E-07    .52970E-04
   7  Prefactor     .10000E-03    35.737        .44462E-05** at limit **
   8  Prefactor     .10000E-03    6.9008       -.64266E-07** at limit **
   9  norm          3.8255        14.965        .48394E-05    .51220E-03
  10  Prefactor     17.851        13.129        .12875E-06    .38939E-04
  11  norm          3.0571        11.854        .59796E-06    .48262E-04
  12  Prefactor     30.744        19.592        .47567E-07   -.10904E-04
  13  Prefactor     1.4357        2.2218        .16005E-06    .51673E-03
  14  Prefactor     .10002E-03    102.63       -.96027E-05** at limit **
  15  Prefactor     5.6661        18.568        .35212E-06    .25479E-04
  16  norm          4.4649        2.9855        .14033E-06    .62144E-03
  17  Prefactor     .10000E-03    5.6456       -.33305E-07** at limit **
  18  Prefactor     3.1713        4.5247       -.79414E-07    .35566E-04
  19  Prefactor     20.173        34.014       -.33863E-06   -.10611E-04
  20  norm          1.8465        1.3524        .33531E-07    .14994E-03
  21  Prefactor     .10000E-03    14.891       -.18973E-06** at limit **
  22  Prefactor     .10001E-03    2.3798        .17208E-05** at limit **
  23  Prefactor     47.967        38.772        .23171E-05    .26218E-03
  24  Prefactor     .10000E-03    25.078       -.25994E-05** at limit **
  25  norm          4.3478        1.8334        .19093E-08    .28158E-04
  26  Prefactor     .10000E-03    48.150       -.28790E-05** at limit **
  27  norm          5.9559        3.7204        .11515E-07    .10682E-03
  28  Prefactor     .10000E-03    7.5695        .12064E-06** at limit **
  29  Prefactor     .10000E-03    1.9589       -.38390E-07** at limit **
  30  Prefactor     .10000E-03    2.7014       -.93514E-06** at limit **
  31  Normalizat    .68422        .21713       -.97159E-06    .37964E-04
  32  Prefactor     1.1224        .24757       -.30946E-06    .59471E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000101569
  Prefactor  = 0.0001
  Prefactor  = 12.294
  norm       = 1.17181
  Prefactor  = 1.764
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 3.82546
  Prefactor  = 17.8507
  norm       = 3.05711
  Prefactor  = 30.7437
  Prefactor  = 1.43575
  Prefactor  = 0.000100023
  Prefactor  = 5.66606
  norm       = 4.46489
  Prefactor  = 0.0001
  Prefactor  = 3.17134
  Prefactor  = 20.1733
  norm       = 1.84651
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 47.9668
  Prefactor  = 0.000100002
  norm       = 4.34778
  Prefactor  = 0.000100004
  norm       = 5.95593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.68422
  Prefactor  = 1.12237
 **********
 **   18 **HESSE 
 **********

 FCN=   3551.084     FROM HESSE     STATUS=OK           665 CALLS     5128 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10157E-03    124.97        .38537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3328        .12109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.294        17.896        .11419E-03   -1.5007    
   5  norm          1.1718        .39215        .20820E-04   -1.5491    
   6  Prefactor     1.7640        2.2053        .96116E-04   -1.5442    
   7  Prefactor     .10000E-03    36.820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9042        .15289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8255        16.330        .10318E-02   -1.5317    
  10  Prefactor     17.851        13.127        .94795E-04   -1.4863    
  11  norm          3.0571        11.846        .23187E-03   -1.5358    
  12  Prefactor     30.744        19.590        .72255E-04   -1.4598    
  13  Prefactor     1.4357        2.1833        .10537E-03   -1.5468    
  14  Prefactor     .10002E-03    105.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6661        18.542        .16884E-03   -1.5232    
  16  norm          4.4649        2.9793        .80330E-04   -1.5285    
  17  Prefactor     .10000E-03    5.6498        .13825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1713        4.5082        .14575E-03   -1.5352    
  19  Prefactor     20.173        34.075        .89184E-04   -1.4809    
  20  norm          1.8465        1.3462        .55749E-04   -1.5436    
  21  Prefactor     .10000E-03    14.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    10.524        .13963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     47.967        39.163        .57888E-04   -1.4322    
  24  Prefactor     .10000E-03    25.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.3478        1.8327        .50058E-04   -1.5291    
  26  Prefactor     .10000E-03    48.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.9559        3.6511        .86428E-04   -1.5220    
  28  Prefactor     .10000E-03    7.6306        .16011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.9932        .81233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    10.095        .17643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .68422        .25017        .27329E-03   -1.0452    
  32  Prefactor     1.1224        .28958        .26104E-03   -.88755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57551e-08
Minuit parameter uncertainties:
  1  0.000184939
  2  0.0280644
  3  1.23033e-06
  4  17.904
  5  0.392149
  6  2.20537
  7  0.00081443
  8  7.22744e-06
  9  15.8148
  10  13.1292
  11  11.8551
  12  19.5939
  13  2.18347
  14  0.00311095
  15  18.5604
  16  2.97943
  17  6.76535e-06
  18  4.50867
  19  34.1073
  20  1.34626
  21  4.06494e-05
  22  0.000737169
  23  39.1842
  24  0.000455308
  25  1.83269
  26  0.000852694
  27  3.65121
  28  6.76127e-06
  29  4.65878e-07
  30  0.000150357
  31  0.250587
  32  0.289987
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  5.666e+00  1.856e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.122e+00  2.900e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  6.842e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/873257/likelihoodResults_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.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): 0
logL (Free Index) = 3551.08150108
delta logL = 0.00266839392953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3551.08026758
delta logL = 0.00390188879283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6984       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6331       1.0000          .0000       10.000    
     3 'Normalizat'    .68212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3551.080     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      242 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6725        706.20        .46412E-02    .95547E-04
   2  Index         2.6433        5.9001        .23093        .39904E-04
   3  Normalizat    .68180        .46847E-01    .61882E-01   -.30230E-03
   4  Prefactor     1.1245        .56181E-01    .58984E-01   -.44163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.67246
  Index      = 2.64332
  Normalizat = 0.681796
  Prefactor  = 1.12446
 **********
 **   18 **HESSE 
 **********

 FCN=   3551.080     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6725        34.159        .18565E-03   -1.5276    
   2  Index         2.6433        2.6273        .11921E-01   -.49080    
   3  Normalizat    .68180        .24227        .27375E-03   -1.0462    
   4  Prefactor     1.1245        .28955        .26083E-03   -.88689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86785e-10
Minuit parameter uncertainties:
  1  25.287
  2  2.81455
  3  0.24265
  4  0.289959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873257': 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) = 3551.08025294
delta logL = 0.00391653298357

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  4.672e+00  2.529e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.643e+00  2.815e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.124e+00  2.900e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  6.818e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 172.380 30.579

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/873257/cmap_HighResolution_258249601_258508801_4FGL_J1129.5+3034_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-04 01:31:41.539514', job_id='873257', GAL2='1.12', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630744301.54', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.92e-03', ts2='0.11', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='73' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:31:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 873257: <4FGL_J1129.5+3034_daily_bin73> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin73> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 01:16:01 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:16:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 01:16:05 2021
Terminated at Sat Sep  4 01:31:42 2021
Results reported at Sat Sep  4 01:31:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin73 172.38 30.5789 258249601 258508801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.5+3034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            941 sec.

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

