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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin709
RA = 172.38, Dec = 30.5789
tmin = 423100801, tmax = 423360001
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='877066', job_status='RUN', time_executed='2021-09-04 01:29:08.053941', time_epoch_executed='1630744148.05' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877066/ft1_4FGL_J1129.5+3034_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877066/ft2_4FGL_J1129.5+3034_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877066/ft1_4FGL_J1129.5+3034_daily_bin709.fits outfile=/scratch/kocevski/877066/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin709.fits ra=172.38 dec=30.5789 rad=12.0 tmin=423100801.0 tmax=423360001.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 5.02
user 4.75
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877066/ft2_4FGL_J1129.5+3034_daily_bin709.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/877066/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin709.fits evtable="EVENTS" outfile="/scratch/kocevski/877066/ft1_filtered_4FGL_J1129.5+3034_daily_bin709.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.54
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877066/ft1_filtered_4FGL_J1129.5+3034_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/877066/ft2_4FGL_J1129.5+3034_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/877066/ltcube_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.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/877066/ft2_4FGL_J1129.5+3034_daily_bin709.fits
.....................!
real 15.13
user 14.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877066/ft1_filtered_4FGL_J1129.5+3034_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/877066/ft2_4FGL_J1129.5+3034_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/877066/ltcube_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.fits outfile=/scratch/kocevski/877066/expmap_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.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/877066/ltcube_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.fits
.....................!
real 191.45
user 186.95
sys 3.92

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/877066/ft1_filtered_4FGL_J1129.5+3034_daily_bin709.fits scfile=/scratch/kocevski/877066/ft2_4FGL_J1129.5+3034_daily_bin709.fits outfile=/scratch/kocevski/877066/cmap_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877066/ft1_filtered_4FGL_J1129.5+3034_daily_bin709.fits scfile=/scratch/kocevski/877066/ft2_4FGL_J1129.5+3034_daily_bin709.fits outfile=/scratch/kocevski/877066/cmap_HighResolution_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.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.57
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/877066/ft1_filtered_4FGL_J1129.5+3034_daily_bin709.fits', '/scratch/kocevski/877066/ft2_4FGL_J1129.5+3034_daily_bin709.fits', expMap='/scratch/kocevski/877066/expmap_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.fits', expCube='/scratch/kocevski/877066/ltcube_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/877066/Model_4FGL_J1129.5+3034_daily_bin709.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/877066/ft1_filtered_4FGL_J1129.5+3034_daily_bin709.fits
Spacecraft file(s): /scratch/kocevski/877066/ft2_4FGL_J1129.5+3034_daily_bin709.fits
Exposure map: /scratch/kocevski/877066/expmap_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.fits
Exposure cube: /scratch/kocevski/877066/ltcube_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/877066/Model_4FGL_J1129.5+3034_daily_bin709.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) = 4725.92804668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.203       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.999       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1875       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    19.281       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0513       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.1243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11026E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.6554       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11999E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.551       1.0000         .10000E-03   10000.    
    25 'norm      '    4.0105       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.868       1.0000         .10000E-03   10000.    
    27 'norm      '    6.0171       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.2567       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.5759       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0887       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89065       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=   4725.915     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4261 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.769        .21827E-06** at limit **
   2  Prefactor     18.208        11.669        .31501E-07   -.32954E-05
   3  Prefactor     11.008        13.668        .21721E-06   -.21396E-04
   4  Prefactor     .10000E-03    5.1362        .52630E-07** at limit **
   5  norm          1.1876        .39601       -.26245E-07   -.18499E-03
   6  Prefactor     .10000E-03    2.0078        .31009E-06** at limit **
   7  Prefactor     2.2336        43.597        .37320E-05    .10924E-04
   8  Prefactor     .10000E-03    6.8834       -.10820E-07** at limit **
   9  norm          19.285        20.675       -.79986E-06   -.25947E-04
  10  Prefactor     .10000E-03    3.1243        .13300E-06** at limit **
  11  norm          .10000E-03    16.716        .95108E-06** at limit **
  12  Prefactor     .10000E-03    6.4740        .26966E-06** at limit **
  13  Prefactor     5.0504        3.9171        .73790E-07   -.13895E-04
  14  Prefactor     .10000E-03    42.746        .11468E-06** at limit **
  15  Prefactor     .10000E-03    8.8166        .22229E-06** at limit **
  16  norm          9.1234        4.0140       -.11182E-06   -.44603E-05
  17  Prefactor     .10000E-03    6.0382        .17865E-06** at limit **
  18  Prefactor     .10000E-03    1.5699        .41016E-07** at limit **
  19  Prefactor     .10000E-03    25.012       -.31549E-06** at limit **
  20  norm          7.6550        2.2819        .50528E-06   -.18283E-05
  21  Prefactor     .10000E-03    15.542        .45302E-06** at limit **
  22  Prefactor     .10000E-03    .88577        .21307E-06** at limit **
  23  Prefactor     .10000E-03    34.716       -.61657E-06** at limit **
  24  Prefactor     20.258        141.82       -.16825E-04   -.23521E-04
  25  norm          4.0101        1.9321        .25054E-07   -.41081E-04
  26  Prefactor     28.836        37.121       -.10388E-05   -.24196E-04
  27  norm          6.0171        3.7339       -.70856E-07   -.76007E-07
  28  Prefactor     5.2567        10.184        .50372E-05    .54986E-04
  29  Prefactor     .10000E-03    1.0135        .41069E-07** at limit **
  30  Prefactor     2.5755        2.5978       -.12085E-07   -.12425E-04
  31  Normalizat    1.0889        .22594        .27173E-05   -.21060E-03
  32  Prefactor     .89053        .25031       -.52978E-05    .34623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.2084
  Prefactor  = 11.008
  Prefactor  = 0.0001
  norm       = 1.18757
  Prefactor  = 0.0001
  Prefactor  = 2.23364
  Prefactor  = 0.0001
  norm       = 19.2851
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.05038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.1234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.65495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2581
  norm       = 4.01013
  Prefactor  = 28.8355
  norm       = 6.01714
  Prefactor  = 5.25671
  Prefactor  = 0.0001
  Prefactor  = 2.57548
  Normalizat = 1.08888
  Prefactor  = 0.890527
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.915     FROM HESSE     STATUS=OK           653 CALLS     4914 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.208        11.670        .93876E-04   -1.4854    
   3  Prefactor     11.008        13.660        .12080E-03   -1.5044    
   4  Prefactor     .10000E-03    5.1367        .15217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1876        .39503        .23395E-04   -1.5490    
   6  Prefactor     .10000E-03    2.0358        .95014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2336        42.443        .27408E-03   -1.5409    
   8  Prefactor     .10000E-03    6.8853        .17614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.285        20.400        .91214E-04   -1.4829    
  10  Prefactor     .10000E-03    3.1341        .11868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4878        .17085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0504        3.9091        .10776E-03   -1.5258    
  14  Prefactor     .10000E-03    42.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.1234        4.0105        .83471E-04   -1.5104    
  17  Prefactor     .10000E-03    6.0526        .16499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5717        .84111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.6550        2.3036        .46803E-04   -1.5155    
  21  Prefactor     .10000E-03    15.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .89867        .63182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.258        146.45        .88353E-04   -1.4807    
  25  norm          4.0101        1.9318        .62779E-04   -1.5307    
  26  Prefactor     28.836        37.155        .74567E-04   -1.4633    
  27  norm          6.0171        3.7310        .10061E-03   -1.5217    
  28  Prefactor     5.2567        10.334        .87656E-03   -1.5249    
  29  Prefactor     .10000E-03    1.0152        .67558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.5755        2.6007        .10742E-03   -1.5387    
  31  Normalizat    1.0889        .26657        .25899E-03   -.90110    
  32  Prefactor     .89053        .28987        .32047E-03   -.96473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.803e-10
Minuit parameter uncertainties:
  1  1.1945e-05
  2  11.6712
  3  13.6637
  4  5.87432e-07
  5  0.395036
  6  2.6746e-06
  7  19.4888
  8  8.62316e-07
  9  20.4075
  10  2.69134e-06
  11  1.98458e-05
  12  6.70938e-06
  13  3.90925
  14  1.37525e-05
  15  1.57984e-06
  16  4.01066
  17  2.845e-07
  18  2.84395e-07
  19  2.56699e-05
  20  2.3036
  21  1.18839e-05
  22  1.2128e-06
  23  3.46318e-05
  24  109.317
  25  1.93188
  26  37.1847
  27  3.73118
  28  10.3374
  29  5.54605e-07
  30  2.6008
  31  0.266903
  32  0.290369
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.580e-06  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:  8.905e-01  2.904e-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:  1.089e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/877066/likelihoodResults_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.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) = 4725.915302
delta logL = -0.000538084233085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4725.9147639
delta logL = 1.41599230119e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4456       1.0000          .0000       10.000    
     3 'Normalizat'    1.0889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89053       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=   4725.915     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      210 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1049.1        .90712E-02** at limit **
   2  Index         2.4342        8.3330        .50000        .11169E-04
   3  Normalizat    1.0889        .70689E-01    .58563E-01    .80104E-05
   4  Prefactor     .89052        .80218E-01    .72428E-01    .19309E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43416
  Normalizat = 1.08889
  Prefactor  = 0.890521
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.915     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      241 TOTAL
                     EDM=   .10E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    668.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4342        6.9104        .20000       -.53887    
   3  Normalizat    1.0889        .51387E-01    .25898E-03   -.90109    
   4  Prefactor     .89052        .58362E-01    .32048E-03   -.96473    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00010441
Minuit parameter uncertainties:
  1  0.000207474
  2  3922.02
  3  0.0513892
  4  0.0583659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877066': 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) = 4725.91476386
delta logL = 6.13272277405e-08

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.075e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.434e+00  3.922e+03  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:  8.905e-01  5.837e-02  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:  1.089e+00  5.139e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/877066/cmap_HighResolution_423100801_423360001_4FGL_J1129.5+3034_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-09-04 01:43:00.229549', job_id='877066', GAL2='0.89', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630744980.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='709' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:43:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 877066: <4FGL_J1129.5+3034_daily_bin709> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin709> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 01:27:12 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:28:51 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:28:51 2021
Terminated at Sat Sep  4 01:43:01 2021
Results reported at Sat Sep  4 01:43:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin709 172.38 30.5789 423100801 423360001 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 :                                   823.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            949 sec.

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

