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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin1075
RA = 172.38, Dec = 30.5789
tmin = 517968001, tmax = 518227201
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='881175', job_status='RUN', time_executed='2021-09-04 01:41:32.060095', time_epoch_executed='1630744892.06' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881175

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881175/ft1_4FGL_J1129.5+3034_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881175/ft2_4FGL_J1129.5+3034_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/881175/ft1_4FGL_J1129.5+3034_daily_bin1075.fits outfile=/scratch/kocevski/881175/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin1075.fits ra=172.38 dec=30.5789 rad=12.0 tmin=517968001.0 tmax=518227201.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.75
user 3.52
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/881175/ft2_4FGL_J1129.5+3034_daily_bin1075.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/881175/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin1075.fits evtable="EVENTS" outfile="/scratch/kocevski/881175/ft1_filtered_4FGL_J1129.5+3034_daily_bin1075.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/881175/ft1_filtered_4FGL_J1129.5+3034_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/881175/ft2_4FGL_J1129.5+3034_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/881175/ltcube_517968001_518227201_4FGL_J1129.5+3034_daily_bin1075.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/881175/ft2_4FGL_J1129.5+3034_daily_bin1075.fits
.....................!
real 13.19
user 12.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881175/ft1_filtered_4FGL_J1129.5+3034_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/881175/ft2_4FGL_J1129.5+3034_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/881175/ltcube_517968001_518227201_4FGL_J1129.5+3034_daily_bin1075.fits outfile=/scratch/kocevski/881175/expmap_517968001_518227201_4FGL_J1129.5+3034_daily_bin1075.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/881175/ltcube_517968001_518227201_4FGL_J1129.5+3034_daily_bin1075.fits
.....................!
real 190.74
user 186.04
sys 4.26

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/881175/ft1_filtered_4FGL_J1129.5+3034_daily_bin1075.fits scfile=/scratch/kocevski/881175/ft2_4FGL_J1129.5+3034_daily_bin1075.fits outfile=/scratch/kocevski/881175/cmap_517968001_518227201_4FGL_J1129.5+3034_daily_bin1075.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/881175/ft1_filtered_4FGL_J1129.5+3034_daily_bin1075.fits scfile=/scratch/kocevski/881175/ft2_4FGL_J1129.5+3034_daily_bin1075.fits outfile=/scratch/kocevski/881175/cmap_HighResolution_517968001_518227201_4FGL_J1129.5+3034_daily_bin1075.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1049       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0653       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0119       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.757       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8999       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7127       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19295E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.9940       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5801       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1823       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.862       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4680       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.980       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .96981       1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.911       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.3429       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    12.637       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.0198       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91101       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84702       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=   6027.260     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4424 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.429        .52405E-06** at limit **
   2  Prefactor     .10000E-03    6.3575        .52897E-07** at limit **
   3  Prefactor     4.1067        10.361       -.22890E-06    .78235E-05
   4  Prefactor     .10000E-03    10.921        .84673E-07** at limit **
   5  norm          1.0654        .30164        .13135E-08    .23229E-03
   6  Prefactor     .10000E-03    .68189        .33179E-07** at limit **
   7  Prefactor     4.0113        9.6790       -.16188E-06    .14560E-04
   8  Prefactor     .10000E-03    9.5383        .11608E-07** at limit **
   9  norm          10.759        17.339       -.56837E-09    .39368E-04
  10  Prefactor     .10000E-03    2.0551        .16503E-07** at limit **
  11  norm          .10000E-03    4.8738        .85473E-07** at limit **
  12  Prefactor     3.9010        10.325       -.31759E-06    .69498E-05
  13  Prefactor     1.7120        2.9521       -.40248E-06    .12886E-03
  14  Prefactor     .10000E-03    59.823       -.73659E-06** at limit **
  15  Prefactor     .10008E-03    62.111       -.66786E-06** at limit **
  16  norm          8.9934        3.9975       -.42539E-07    .18989E-03
  17  Prefactor     2.5834        10.839       -.22757E-05   -.11620E-05
  18  Prefactor     2.1830        7.5161       -.11455E-05    .50121E-04
  19  Prefactor     71.865        53.365        .40307E-07    .13758E-04
  20  norm          3.4679        1.4053        .19329E-07    .16367E-03
  21  Prefactor     37.961        30.167       -.30530E-06    .76391E-04
  22  Prefactor     .97171        1.9679        .41641E-07   -.69853E-04
  23  Prefactor     50.911        35.433        .28096E-06    .67037E-04
  24  Prefactor     .10000E-03    44.725        .22693E-06** at limit **
  25  norm          3.3430        1.6770       -.15946E-07    .16352E-03
  26  Prefactor     .10000E-03    11.066        .21278E-07** at limit **
  27  norm          12.635        4.2401       -.16741E-07    .19644E-03
  28  Prefactor     .10001E-03    18.955        .98501E-06** at limit **
  29  Prefactor     .10000E-03    1.4133       -.12858E-07** at limit **
  30  Prefactor     3.0192        2.7606       -.38969E-07    .71633E-04
  31  Normalizat    .91133        .19117       -.17924E-06    .14256E-03
  32  Prefactor     .84663        .19409        .29914E-06    .10197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.10671
  Prefactor  = 0.0001
  norm       = 1.06536
  Prefactor  = 0.0001
  Prefactor  = 4.01135
  Prefactor  = 0.0001
  norm       = 10.7591
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.90097
  Prefactor  = 1.71196
  Prefactor  = 0.0001
  Prefactor  = 0.000100076
  norm       = 8.99345
  Prefactor  = 2.58345
  Prefactor  = 2.18304
  Prefactor  = 71.8651
  norm       = 3.46787
  Prefactor  = 37.9606
  Prefactor  = 0.971709
  Prefactor  = 50.9108
  Prefactor  = 0.0001
  norm       = 3.34302
  Prefactor  = 0.0001
  norm       = 12.635
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 3.01921
  Normalizat = 0.911329
  Prefactor  = 0.846632
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.260     FROM HESSE     STATUS=OK           667 CALLS     5091 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1067        10.357        .19897E-03   -1.5303    
   4  Prefactor     .10000E-03    10.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0654        .30219        .21760E-04   -1.5502    
   6  Prefactor     .10000E-03    .68270        .62558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0113        9.6420        .20134E-03   -1.5307    
   8  Prefactor     .10000E-03    9.5995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.759        17.266        .12216E-03   -1.5052    
  10  Prefactor     .10000E-03    2.0573        .10868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.8929        .16736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9010        10.325        .20431E-03   -1.5313    
  13  Prefactor     1.7120        2.8436        .14885E-03   -1.5446    
  14  Prefactor     .10000E-03    60.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    119.42        .58245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.9934        3.9571        .89301E-04   -1.5108    
  17  Prefactor     2.5834        10.679        .25407E-03   -1.5386    
  18  Prefactor     2.1830        7.3235        .27866E-03   -1.5412    
  19  Prefactor     71.865        53.495        .47357E-04   -1.4010    
  20  norm          3.4679        1.4061        .53782E-04   -1.5336    
  21  Prefactor     37.961        29.655        .65035E-04   -1.4475    
  22  Prefactor     .97171        1.8911        .13892E-03   -1.5511    
  23  Prefactor     50.911        35.299        .56206E-04   -1.4280    
  24  Prefactor     .10000E-03    44.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3430        1.6709        .65894E-04   -1.5342    
  26  Prefactor     .10000E-03    11.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          12.635        4.0914        .85122E-04   -1.4997    
  28  Prefactor     .10001E-03    29.254        .33040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.2176        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.0192        2.7497        .11738E-03   -1.5360    
  31  Normalizat    .91133        .22306        .26331E-03   -.96063    
  32  Prefactor     .84663        .22566        .29820E-03   -.98032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07131e-09
Minuit parameter uncertainties:
  1  0.000178373
  2  5.47259e-06
  3  10.3612
  4  4.75361e-06
  5  0.30219
  6  1.89984e-08
  7  9.64573
  8  2.97151e-06
  9  17.274
  10  1.29317e-07
  11  2.84079e-06
  12  10.3295
  13  2.84386
  14  0.00024194
  15  0.00604988
  16  3.95721
  17  10.5079
  18  7.32648
  19  53.5303
  20  1.40607
  21  29.6661
  22  1.89126
  23  35.3134
  24  0.000167374
  25  1.67089
  26  1.00789e-05
  27  4.09149
  28  0.00118076
  29  9.13181e-06
  30  2.74978
  31  0.223284
  32  0.225908
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.001e-04  6.050e-03  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.466e-01  2.259e-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:  9.113e-01  2.233e-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: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/881175/likelihoodResults_517968001_518227201_4FGL_J1129.5+3034_daily_bin1075.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) = 6027.26047957
delta logL = -3.9343323806e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6027.18177801
delta logL = 0.0786622186024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9357       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3984       1.0000          .0000       10.000    
     3 'Normalizat'    .88918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85774       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6027.182     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      328 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9342        28.111        .26184E-03   -.64113E-03
   2  Index         3.3988        3.1984        .10363E-01   -.14942E-03
   3  Normalizat    .88917        .20857        .26632E-03    .21020E-03
   4  Prefactor     .85777        .22352        .29646E-03    .46116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.9342
  Index      = 3.39877
  Normalizat = 0.889171
  Prefactor  = 0.857768
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.182     FROM HESSE     STATUS=OK            25 CALLS      353 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9342        8.9622        .10473E-04   -1.5430    
   2  Index         3.3988        1.9221        .41454E-03   -.32599    
   3  Normalizat    .88917        .20895        .10653E-04   -.96842    
   4  Prefactor     .85777        .22362        .59291E-04   -.97633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38441e-09
Minuit parameter uncertainties:
  1  8.3288
  2  1.97924
  3  0.209137
  4  0.223857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881175': 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) = 6027.18177798
delta logL = 0.0786622504593

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.934e+00  8.329e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.399e+00  1.979e+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:  8.578e-01  2.239e-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:  8.892e-01  2.091e-01  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/881175/cmap_HighResolution_517968001_518227201_4FGL_J1129.5+3034_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-04 01:57:25.487887', job_id='881175', GAL2='0.86', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1630745845.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='7.87e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1075' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:57:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 881175: <4FGL_J1129.5+3034_daily_bin1075> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin1075> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 01:41:21 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:41:23 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:41:23 2021
Terminated at Sat Sep  4 01:57:26 2021
Results reported at Sat Sep  4 01:57:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin1075 172.38 30.5789 517968001 518227201 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 :                                   952.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            965 sec.

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

