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


Performing analysis on: 4FGL_J1829.2-5813_daily_bin1209
RA = 277.311, Dec = -58.2323
tmin = 552700801, tmax = 552960001
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='941730', job_status='RUN', time_executed='2021-09-20 13:06:53.423041', time_epoch_executed='1632168413.42' WHERE source_name='4FGL J1829.2-5813' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/941730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/941730/ft1_4FGL_J1829.2-5813_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/941730/ft1_4FGL_J1829.2-5813_daily_bin1209.fits outfile=/scratch/kocevski/941730/ft1_filteredMKT_4FGL_J1829.2-5813_daily_bin1209.fits ra=277.311 dec=-58.2323 rad=12.0 tmin=552700801.0 tmax=552960001.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.03
user 2.83
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.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/941730/ft1_filteredMKT_4FGL_J1829.2-5813_daily_bin1209.fits evtable="EVENTS" outfile="/scratch/kocevski/941730/ft1_filtered_4FGL_J1829.2-5813_daily_bin1209.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/941730/ft1_filtered_4FGL_J1829.2-5813_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/941730/ltcube_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.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/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits
.....................!
real 12.39
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/941730/ft1_filtered_4FGL_J1829.2-5813_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/941730/ltcube_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.fits outfile=/scratch/kocevski/941730/expmap_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.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/941730/ltcube_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.fits
.....................!
real 191.13
user 185.33
sys 5.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
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Added 318 point sources and 11 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1829.2-5813 @ 277.311 -58.2323

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/941730/ft1_filtered_4FGL_J1829.2-5813_daily_bin1209.fits scfile=/scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits outfile=/scratch/kocevski/941730/cmap_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.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=277.311 yref=-58.2323 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/941730/ft1_filtered_4FGL_J1829.2-5813_daily_bin1209.fits scfile=/scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits outfile=/scratch/kocevski/941730/cmap_HighResolution_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.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=277.311 yref=-58.2323 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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/941730/ft1_filtered_4FGL_J1829.2-5813_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/941730/Model_4FGL_J1829.2-5813_daily_bin1209.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 FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
Working on...
/scratch/kocevski/941730/ft1_filtered_4FGL_J1829.2-5813_daily_bin1209.fits.....................!
real 138.29
user 136.84
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/941730/ft1_filtered_4FGL_J1829.2-5813_daily_bin1209.fits', '/scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits', expMap='/scratch/kocevski/941730/expmap_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.fits', expCube='/scratch/kocevski/941730/ltcube_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/941730/Model_4FGL_J1829.2-5813_daily_bin1209.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1829.2-5813'

4FGL J1829.2-5813
   Spectrum: LogParabola
806         norm:  1.490e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
807        alpha:  2.500e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
808         beta:  1.293e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
809           Eb:  6.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/941730/ft1_filtered_4FGL_J1829.2-5813_daily_bin1209.fits
Spacecraft file(s): /scratch/kocevski/941730/ft2_4FGL_J1829.2-5813_daily_bin1209.fits
Exposure map: /scratch/kocevski/941730/expmap_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.fits
Exposure cube: /scratch/kocevski/941730/ltcube_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/941730/Model_4FGL_J1829.2-5813_daily_bin1209.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) = 3351.34661289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71741E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13531E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .31913E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.084       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5908       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.862       1.0000         .10000E-03   10000.    
    13 'Prefactor '    146.24       1.0000         .10000E-03   10000.    
    14 'norm      '    .97298       1.0000         .10000E-03   10000.    
    15 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    122.79       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30595E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13143E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12643E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    29.152       1.0000         .10000E-03   10000.    
    22 'norm      '    .12310E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5452       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84977       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1159E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3351.259     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     3271 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65343E-01    5.5439        .77505E-06   -.15384E-03
   2  norm          .10000E-03    14.423       -.43277E-06** at limit **
   3  Prefactor     .10002E-03    15.193        .54791E-05** at limit **
   4  Prefactor     3.7216        41.628        .15015E-05   -.11550E-04
   5  Prefactor     .10000E-03    52.379        .16410E-05** at limit **
   6  norm          .10001E-03    581.94       -.91929E-05** at limit **
   7  Prefactor     22.782        26.551       -.12829E-06   -.43625E-04
   8  Prefactor     66.099        96.173        .10111E-05    .13919E-04
   9  norm          1.5952        183.00        .23317E-05    .75872E-05
  10  Prefactor     .10000E-03    77.506        .14772E-05** at limit **
  11  Prefactor     .10000E-03    18.419       -.20657E-06** at limit **
  12  Prefactor     10.855        21.411        .21932E-06   -.57975E-04
  13  Prefactor     146.24        129.81       -.24806E-05    .10927E-04
  14  norm          .96193        33.889        .14306E-04    .11614E-04
  15  norm          .10000E-03    7.2492        .35183E-07** at limit **
  16  norm          .10000E-03    1.9820        .37924E-05** at limit **
  17  Prefactor     122.46        332.55        .11882E-04   -.63047E-05
  18  Prefactor     .10000E-03    436.95        .49404E-05** at limit **
  19  Prefactor     .10000E-03    112.58        .42753E-06** at limit **
  20  Prefactor     .10000E-03    402.64        .68765E-05** at limit **
  21  norm          29.127        22.947        .49338E-06   -.65403E-04
  22  norm          .10000E-03    4.1144        .60002E-06** at limit **
  23  Normalizat    1.5455        .62761       -.50323E-05   -.76858E-04
  24  Prefactor     .84977        .13911        .74592E-06   -.61109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0653426
  norm       = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 3.72161
  Prefactor  = 0.000100001
  norm       = 0.000100005
  Prefactor  = 22.7823
  Prefactor  = 66.0988
  norm       = 1.5952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8552
  Prefactor  = 146.237
  norm       = 0.961927
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 122.461
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 29.1267
  norm       = 0.0001
  Normalizat = 1.54548
  Prefactor  = 0.849774
 **********
 **   18 **HESSE 
 **********

 FCN=   3351.259     FROM HESSE     STATUS=OK           403 CALLS     3674 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65343E-01    12.034        .43436E-01   -1.5657    
   2  norm          .10000E-03    14.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    54.605        .37358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7216        41.184        .20907E-03   -1.5322    
   5  Prefactor     .10000E-03    52.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    594.07        .42727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.782        26.571        .83879E-04   -1.4753    
   8  Prefactor     66.099        95.556        .49370E-04   -1.4080    
   9  norm          1.5952        181.02        .33642E-03   -1.5455    
  10  Prefactor     .10000E-03    77.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.855        21.463        .12156E-03   -1.5049    
  13  Prefactor     146.24        129.78        .33322E-04   -1.3283    
  14  norm          .96193        36.876        .26140E-02   -1.5512    
  15  norm          .10000E-03    7.2695        .15222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0130        .79344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     122.46        333.33        .18161E-03   -1.3490    
  18  Prefactor     .10000E-03    437.67        .21381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    112.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    403.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          29.127        23.228        .74203E-04   -1.4628    
  22  norm          .10000E-03    17.153        .22352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5455        .71786        .25441E-02   -.76508    
  24  Prefactor     .84977        .16334        .15475E-03   -.97919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11729e-09
Minuit parameter uncertainties:
  1  1.77253
  2  3.92367e-05
  3  0.00197806
  4  24.7819
  5  0.000434106
  6  0.00356821
  7  26.5846
  8  95.7784
  9  34.0912
  10  0.000381304
  11  8.79375e-06
  12  21.478
  13  130.037
  14  11.919
  15  2.58261e-06
  16  2.08671e-05
  17  338.653
  18  0.00101553
  19  0.000260932
  20  0.00148262
  21  23.2353
  22  9.48872e-05
  23  0.722697
  24  0.163437
Done.

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

Extracting fit parameters...

4FGL J1829.2-5813
   Spectrum: LogParabola
806         norm:  1.000e-04  2.087e-05  1.000e-04  1.000e+04 ( 1.000e-11)
807        alpha:  2.500e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
808         beta:  1.293e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
809           Eb:  6.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1141    Prefactor:  8.498e-01  1.634e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1142        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1143        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1117   Normalization:  1.545e+00  7.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 277.311 -58.232
Photon Flux Upper Limit: 3.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/941730/likelihoodResults_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.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) = 3351.26146454
delta logL = -0.00236540985134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3351.25909908
delta logL = 5.01954673382e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5140       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84980       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1159E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3351.259     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6012        .90712E-02** at limit **
   2  alpha         2.5281        3.6435        .41152       -.35804E-04
   3  Normalizat    1.5455        .53832        .11476        .50449E-04
   4  Prefactor     .84978        .12750        .44362E-01    .12991E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.52809
  Normalizat = 1.54547
  Prefactor  = 0.849778
 **********
 **   18 **HESSE 
 **********

 FCN=   3351.259     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0523        .79947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5281        3.5597        .50000        .11236E-01
   3  Normalizat    1.5455        .63125        .50879E-03   -.76509    
   4  Prefactor     .84978        .15027        .15475E-03   -.97919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31732e-09
Minuit parameter uncertainties:
  1  2.73818e-05
  2  2.50518
  3  0.634522
  4  0.150342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/941730': 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) = 3351.25909874
delta logL = 3.94341896026e-07

Extracting fit parameters...

4FGL J1829.2-5813
   Spectrum: LogParabola
806         norm:  1.000e-04  2.738e-05  1.000e-04  1.000e+04 ( 1.000e-11)
807        alpha:  2.528e+00  2.505e+00  0.000e+00  5.000e+00 ( 1.000e+00)
808         beta:  1.293e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
809           Eb:  6.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1141    Prefactor:  8.498e-01  1.503e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1142        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1143        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1117   Normalization:  1.545e+00  6.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 277.311 -58.232

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/941730/cmap_HighResolution_552700801_552960001_4FGL_J1829.2-5813_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-05', job_status='DONE', photon_flux_upper_limit='3.30e-07', time_completed='2021-09-20 13:21:23.339199', job_id='941730', GAL2='0.85', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1632169283.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1209' AND source_name='4FGL J1829.2-5813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:21:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 941730: <4FGL_J1829.2-5813_daily_bin1209> in cluster <slac> Done

Job <4FGL_J1829.2-5813_daily_bin1209> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 20 13:05:20 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 13:05:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 13:05:23 2021
Terminated at Mon Sep 20 13:21:23 2021
Results reported at Mon Sep 20 13:21:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.2-5813_daily_bin1209 277.311 -58.2323 552700801 552960001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1829.2-5813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   863.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             366.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

