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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin1435
RA = 172.38, Dec = 30.5789
tmin = 611280001, tmax = 611539201
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='882655', job_status='RUN', time_executed='2021-09-04 01:46:37.397597', time_epoch_executed='1630745197.4' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='1435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/882655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/882655/ft1_4FGL_J1129.5+3034_daily_bin1435.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/882655/ft2_4FGL_J1129.5+3034_daily_bin1435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/882655/ft1_4FGL_J1129.5+3034_daily_bin1435.fits outfile=/scratch/kocevski/882655/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin1435.fits ra=172.38 dec=30.5789 rad=12.0 tmin=611280001.0 tmax=611539201.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.48
user 3.25
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/882655/ft1_filtered_4FGL_J1129.5+3034_daily_bin1435.fits evtable="EVENTS" scfile=/scratch/kocevski/882655/ft2_4FGL_J1129.5+3034_daily_bin1435.fits sctable="SC_DATA" expcube=/scratch/kocevski/882655/ltcube_611280001_611539201_4FGL_J1129.5+3034_daily_bin1435.fits outfile=/scratch/kocevski/882655/expmap_611280001_611539201_4FGL_J1129.5+3034_daily_bin1435.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/882655/ltcube_611280001_611539201_4FGL_J1129.5+3034_daily_bin1435.fits
.....................!
real 192.12
user 185.91
sys 5.59

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/882655/ft1_filtered_4FGL_J1129.5+3034_daily_bin1435.fits scfile=/scratch/kocevski/882655/ft2_4FGL_J1129.5+3034_daily_bin1435.fits outfile=/scratch/kocevski/882655/cmap_611280001_611539201_4FGL_J1129.5+3034_daily_bin1435.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/882655/ft1_filtered_4FGL_J1129.5+3034_daily_bin1435.fits scfile=/scratch/kocevski/882655/ft2_4FGL_J1129.5+3034_daily_bin1435.fits outfile=/scratch/kocevski/882655/cmap_HighResolution_611280001_611539201_4FGL_J1129.5+3034_daily_bin1435.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.097       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5682       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.342       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4050       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8898       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5248       1.0000         .10000E-03   10000.    
     9 'norm      '    32.724       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.847       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2789       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.799       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3854       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5975       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.318       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .25467       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.9739       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.5225       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .85163       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0820       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6394.414     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     3610 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    9.9138        .12962E-04** at limit **
   2  Prefactor     13.095        1.0035        .42855E-07    .34042E-04
   3  Prefactor     5.5689        1.0055        .48685E-07   -.23062E-04
   4  Prefactor     12.344        1.0823        .54555E-06   -.42598E-03
   5  norm          1.4050        .32176        .42539E-07    .77235E-03
   6  Prefactor     1.8899        1.8179       -.93492E-08    .18949E-03
   7  Prefactor     .10004E-03    3.2532        .76938E-05** at limit **
   8  Prefactor     8.5246        1.0142        .26279E-06   -.17314E-03
   9  norm          32.719        1.4642       -.85431E-06    .14147E-02
  10  Prefactor     10.848        1.0031       -.76784E-07    .37573E-05
  11  norm          .10006E-03    4.1870       -.48477E-05** at limit **
  12  Prefactor     3.2807        1.0349        .54287E-06   -.13858E-03
  13  Prefactor     .10000E-03    1.4131       -.48172E-06** at limit **
  14  Prefactor     29.353        5.4694       -.47637E-05    .13105E-01
  15  Prefactor     .10004E-03    4.9672       -.70133E-05** at limit **
  16  norm          3.8127        2.1033        .20318E-06   -.60826E-04
  17  Prefactor     .10005E-03    6.6464       -.14685E-04** at limit **
  18  Prefactor     22.794        1.0074        .78482E-07   -.47021E-04
  19  Prefactor     .10001E-03    19.231       -.18482E-04** at limit **
  20  norm          2.3853        1.0435        .52079E-08   -.38590E-03
  21  Prefactor     8.6008        1.4946        .17824E-05   -.11480E-02
  22  Prefactor     .10000E-03    1.2537       -.16960E-06** at limit **
  23  Prefactor     24.325        2.4404        .21570E-05   -.45859E-02
  24  Prefactor     .10006E-03    11.965        .17183E-04** at limit **
  25  norm          .25491        .72563        .24219E-06    .65518E-03
  26  Prefactor     .10003E-03    5.3111        .12530E-04** at limit **
  27  norm          3.9749        2.4513       -.31240E-08    .21795E-03
  28  Prefactor     9.5235        1.0020       -.27399E-07   -.31562E-04
  29  Prefactor     .10000E-03    2.6880        .10615E-05** at limit **
  30  Prefactor     .10000E-03    .66513        .13236E-06** at limit **
  31  Normalizat    .85160        .20021       -.15802E-05   -.15880E-03
  32  Prefactor     1.0820        .23537        .53030E-06   -.95814E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100214
  Prefactor  = 13.0954
  Prefactor  = 5.56891
  Prefactor  = 12.3442
  norm       = 1.40498
  Prefactor  = 1.88989
  Prefactor  = 0.000100042
  Prefactor  = 8.52458
  norm       = 32.7186
  Prefactor  = 10.8477
  norm       = 0.000100062
  Prefactor  = 3.28073
  Prefactor  = 0.0001
  Prefactor  = 29.3526
  Prefactor  = 0.000100039
  norm       = 3.81274
  Prefactor  = 0.000100054
  Prefactor  = 22.7935
  Prefactor  = 0.00010001
  norm       = 2.3853
  Prefactor  = 8.60082
  Prefactor  = 0.0001
  Prefactor  = 24.3245
  Prefactor  = 0.000100059
  norm       = 0.254914
  Prefactor  = 0.000100035
  norm       = 3.97489
  Prefactor  = 9.52348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.851599
  Prefactor  = 1.08198
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.414     FROM HESSE     STATUS=OK           735 CALLS     4345 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10021E-03    13.309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.095        9.6394        .27670E-02   -1.4984    
   3  Prefactor     5.5689        7.7278        .42564E-02   -1.5236    
   4  Prefactor     12.344        15.546        .28505E-02   -1.5005    
   5  norm          1.4050        .33036        .47615E-02   -1.5471    
   6  Prefactor     1.8899        1.8349        .75675E-02   -1.5433    
   7  Prefactor     .10004E-03    6.9011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5246        12.362        .34324E-02   -1.5124    
   9  norm          32.719        15.483        .17512E-02   -1.4563    
  10  Prefactor     10.848        9.2438        .30412E-02   -1.5049    
  11  norm          .10006E-03    8.8083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2807        17.625        .55905E-02   -1.5346    
  13  Prefactor     .10000E-03    1.3627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.353        29.506        .18483E-02   -1.4624    
  15  Prefactor     .10004E-03    6.6938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8127        2.1428        .51667E-02   -1.5317    
  17  Prefactor     .10005E-03    10.460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.794        6.4474        .20972E-02   -1.4753    
  19  Prefactor     .10001E-03    25.433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3853        1.0464        .66301E-03   -1.5399    
  21  Prefactor     8.6008        18.956        .34178E-02   -1.5121    
  22  Prefactor     .10000E-03    1.2153        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.325        23.818        .20307E-02   -1.4721    
  24  Prefactor     .10006E-03    21.523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .25491        .75265        .10224E-01   -1.5607    
  26  Prefactor     .10003E-03    8.0516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.9749        2.5238        .50583E-02   -1.5309    
  28  Prefactor     9.5235        8.2936        .32467E-02   -1.5091    
  29  Prefactor     .10000E-03    1.1605        .31243E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .66204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .85160        .18002        .44280E-01   -.98182    
  32  Prefactor     1.0820        .20087        .63496E-01   -.90045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69561e-07
Minuit parameter uncertainties:
  1  0.00337998
  2  9.64058
  3  7.72915
  4  15.5506
  5  0.330359
  6  1.83492
  7  0.00107347
  8  12.3654
  9  15.485
  10  9.24501
  11  0.00148355
  12  15.215
  13  1.29451e-05
  14  29.5209
  15  0.00102532
  16  2.14283
  17  0.00150496
  18  6.44762
  19  0.00102523
  20  1.04645
  21  18.9695
  22  1.60055e-05
  23  23.827
  24  0.00226402
  25  0.752674
  26  0.00105982
  27  2.52389
  28  8.2946
  29  1.20056e-05
  30  4.64256e-06
  31  0.180142
  32  0.20101
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.025e-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:  1.082e+00  2.010e-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.516e-01  1.801e-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: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/882655/likelihoodResults_611280001_611539201_4FGL_J1129.5+3034_daily_bin1435.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) = 6394.41493221
delta logL = -0.000706930193701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6394.41422723
delta logL = -1.95511984202e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13540E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4174       1.0000          .0000       10.000    
     3 'Normalizat'    .85160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0820       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=   6394.414     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10940E-03    6.2429        .18142E-01** at limit **
   2  Index         2.2736        5.3518        .50000        .43779E-04
   3  Normalizat    .85160        .34841E-02    .26419E-03   -.13641E-04
   4  Prefactor     1.0820        .41444E-02    .28084E-03   -.10120E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109402
  Index      = 2.27355
  Normalizat = 0.8516
  Prefactor  = 1.08198
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.414     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10940E-03    260.44        .46984E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2736        5.7995        .50000       -.57673    
   3  Normalizat    .85160        .22958E-01    .10568E-04   -.98182    
   4  Prefactor     1.0820        .27308E-01    .11234E-04   -.90045    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.03982e-08
Minuit parameter uncertainties:
  1  0.0994004
  2  510.149
  3  0.0229579
  4  0.0273088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/882655': 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) = 6394.41422373
delta logL = 1.54859662871e-06

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.094e-04  9.940e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.274e+00  5.101e+02  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.082e+00  2.731e-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:  8.516e-01  2.296e-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/882655/cmap_HighResolution_611280001_611539201_4FGL_J1129.5+3034_daily_bin1435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-04 02:02:42.959408', job_id='882655', GAL2='1.08', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630746162.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1435' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:02:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 882655: <4FGL_J1129.5+3034_daily_bin1435> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin1435> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep  4 01:46:14 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:46:25 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:46:25 2021
Terminated at Sat Sep  4 02:02:43 2021
Results reported at Sat Sep  4 02:02:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin1435 172.38 30.5789 611280001 611539201 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 :                                   951.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            989 sec.

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

