/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 59 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1829.5+4845_daily_bin158
RA = 277.4, Dec = 48.7646
tmin = 280281601, tmax = 280540801
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='946758', job_status='RUN', time_executed='2021-09-20 13:22:32.345347', time_epoch_executed='1632169352.35' WHERE source_name='4FGL J1829.5+4845' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946758/ft1_4FGL_J1829.5+4845_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946758/ft1_4FGL_J1829.5+4845_daily_bin158.fits outfile=/scratch/kocevski/946758/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin158.fits ra=277.4 dec=48.7646 rad=12.0 tmin=280281601.0 tmax=280540801.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 4.27
user 4.01
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.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/946758/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin158.fits evtable="EVENTS" outfile="/scratch/kocevski/946758/ft1_filtered_4FGL_J1829.5+4845_daily_bin158.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946758/ft1_filtered_4FGL_J1829.5+4845_daily_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/946758/ltcube_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.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/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits
.....................!
real 12.73
user 12.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946758/ft1_filtered_4FGL_J1829.5+4845_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/946758/ltcube_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.fits outfile=/scratch/kocevski/946758/expmap_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.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/946758/ltcube_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.fits
.....................!
real 192.09
user 185.31
sys 5.63

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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 208 point sources and 2 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.5+4845 @ 277.4 48.7646

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/946758/ft1_filtered_4FGL_J1829.5+4845_daily_bin158.fits scfile=/scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits outfile=/scratch/kocevski/946758/cmap_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.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.4 yref=48.7646 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946758/ft1_filtered_4FGL_J1829.5+4845_daily_bin158.fits scfile=/scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits outfile=/scratch/kocevski/946758/cmap_HighResolution_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.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.4 yref=48.7646 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/946758/ft1_filtered_4FGL_J1829.5+4845_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/946758/Model_4FGL_J1829.5+4845_daily_bin158.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
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/946758/ft1_filtered_4FGL_J1829.5+4845_daily_bin158.fits.....................!
real 78.22
user 76.77
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/946758/ft1_filtered_4FGL_J1829.5+4845_daily_bin158.fits', '/scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits', expMap='/scratch/kocevski/946758/expmap_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.fits', expCube='/scratch/kocevski/946758/ltcube_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/946758/Model_4FGL_J1829.5+4845_daily_bin158.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1829.5+4845'

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  9.103e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  2.356e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  6.155e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  5.525e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/946758/ft1_filtered_4FGL_J1829.5+4845_daily_bin158.fits
Spacecraft file(s): /scratch/kocevski/946758/ft2_4FGL_J1829.5+4845_daily_bin158.fits
Exposure map: /scratch/kocevski/946758/expmap_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.fits
Exposure cube: /scratch/kocevski/946758/ltcube_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/946758/Model_4FGL_J1829.5+4845_daily_bin158.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) = 7807.87432462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1561       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4049       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36855E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4458       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78165E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .43865E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.096       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9202       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6870       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5919       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2241       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3976       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+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=   7807.706     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     2439 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1543        2.3729        .10946E-03    .15143E-03
   2  Prefactor     4.4047        3.7850        .15383E-03    .26531E-04
   3  norm          5.0160        4.8760        .89753E-03   -.47829E-04
   4  Prefactor     .10070E-03    71.188        .19544    ** at limit **
   5  Prefactor     1.4472        3.9245        .27422E-03   -.78357E-04
   6  Prefactor     .10000E-03    23.981        .18142E-02** at limit **
   7  Prefactor     .10000E-03    115.57        .18142E-02** at limit **
   8  Prefactor     .10000E-03    336.92        .41832E-03** at limit **
   9  Prefactor     .10000E-03    14.259        .18142E-02** at limit **
  10  Prefactor     .10000E-03    23.190        .18142E-02** at limit **
  11  norm          .37662E-03    7.9934        .60670E-01** at limit **
  12  Prefactor     14.100        13.603        .10668E-03    .81522E-04
  13  norm          1.9201        5.7144        .29988E-03   -.67444E-04
  14  Prefactor     5.6631        45.382        .16844E-03    .23825E-04
  15  norm          5.5941        12.480        .84944E-03   -.26433E-04
  16  norm          4.7193        15.693        .18528E-03    .13745E-04
  17  Prefactor     3.2247        2.4171        .11338E-03   -.81121E-04
  18  norm          .10000E-03    .97320        .84093E-03** at limit **
  19  Normalizat    1.3971        .27733        .31327E-03   -.39266E-04
  20  Prefactor     .85093        .13277        .19924E-03    .13643E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1543
  Prefactor  = 4.40469
  norm       = 5.01598
  Prefactor  = 0.0001007
  Prefactor  = 1.4472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000376618
  Prefactor  = 14.0996
  norm       = 1.92005
  Prefactor  = 5.66314
  norm       = 5.59412
  norm       = 4.71927
  Prefactor  = 3.22473
  norm       = 0.0001
  Normalizat = 1.39714
  Prefactor  = 0.85093
 **********
 **   18 **HESSE 
 **********

 FCN=   7807.706     FROM HESSE     STATUS=OK           295 CALLS     2734 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1543        2.3730        .43783E-05   -1.5353    
   2  Prefactor     4.4047        3.7848        .61533E-05   -1.5288    
   3  norm          5.0160        4.8746        .35901E-04   -1.5260    
   4  Prefactor     .10070E-03    78.566        .18366       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4472        3.9233        .10969E-04   -1.5467    
   6  Prefactor     .10000E-03    23.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    115.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    336.93        .83664E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .37662E-03    6.7917        .68008E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.100        13.603        .42673E-05   -1.4957    
  13  norm          1.9201        5.7138        .11995E-04   -1.5431    
  14  Prefactor     5.6631        45.370        .67376E-05   -1.5232    
  15  norm          5.5941        12.470        .33978E-04   -1.5235    
  16  norm          4.7193        15.686        .74111E-05   -1.5273    
  17  Prefactor     3.2247        2.4169        .45351E-05   -1.5349    
  18  norm          .10000E-03    .97341        .16819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3971        .27765        .12531E-04   -.80712    
  20  Prefactor     .85093        .13294        .79696E-05   -.97877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09421e-09
Minuit parameter uncertainties:
  1  2.37307
  2  3.78499
  3  4.87498
  4  0.0148496
  5  3.92399
  6  2.89969e-06
  7  3.43729e-05
  8  0.000391723
  9  1.74936e-05
  10  8.1594e-05
  11  0.0866976
  12  13.6058
  13  5.71545
  14  32.0915
  15  12.4753
  16  15.6992
  17  2.417
  18  1.10325e-06
  19  0.277954
  20  0.132987
Done.

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

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  5.594e+00  1.248e+01  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  2.356e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  6.155e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  5.525e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  8.509e-01  1.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  1.397e+00  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 277.400 48.765
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946758/likelihoodResults_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.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) = 7807.47238713
delta logL = 0.233453171125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7807.46600019
delta logL = 0.239840108109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2620       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1176       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7807.466     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      261 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2593        11.112        .87611E-03   -.13405E-04
   2  alpha         3.1162        1.3091        .24834E-01    .84269E-05
   3  Normalizat    1.3687        .25692        .31595E-03   -.51959E-04
   4  Prefactor     .85843        .12986        .19842E-03   -.88809E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.25932
  alpha      = 3.11621
  Normalizat = 1.36869
  Prefactor  = 0.858428
 **********
 **   18 **HESSE 
 **********

 FCN=   7807.466     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2593        9.1212        .35044E-04   -1.5249    
   2  alpha         3.1162        1.0936        .99336E-03    .24905    
   3  Normalizat    1.3687        .25738        .12638E-04   -.81539    
   4  Prefactor     .85843        .12996        .79368E-05   -.97609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86714e-12
Minuit parameter uncertainties:
  1  9.12358
  2  1.13464
  3  0.257624
  4  0.130005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946758': 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) = 7807.46599747
delta logL = 0.239842832882

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  5.259e+00  9.124e+00  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  3.116e+00  1.135e+00  0.000e+00  5.000e+00 ( 1.000e+00)
394         beta:  6.155e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  5.525e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  8.584e-01  1.300e-01  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  1.369e+00  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
Ra Dec: 277.400 48.765

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/946758/cmap_HighResolution_280281601_280540801_4FGL_J1829.5+4845_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-05', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-20 13:36:22.914145', job_id='946758', GAL2='0.86', fit_tolerance='1e-08', EG2='1.37', EG='1.40', time_epoch_completed='1632170182.91', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.40e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='158' AND source_name='4FGL J1829.5+4845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:36:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 946758: <4FGL_J1829.5+4845_daily_bin158> in cluster <slac> Done

Job <4FGL_J1829.5+4845_daily_bin158> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 20 13:20:23 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 13:21:24 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:21:24 2021
Terminated at Mon Sep 20 13:36:23 2021
Results reported at Mon Sep 20 13:36:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.5+4845_daily_bin158 277.4 48.7646 280281601 280540801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1829.5+4845 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   828.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            960 sec.

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

