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


Performing analysis on: 4FGL_J1829.5+4845_daily_bin425
RA = 277.4, Dec = 48.7646
tmin = 349488001, tmax = 349747201
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='949309', job_status='RUN', time_executed='2021-09-20 13:32:30.049267', time_epoch_executed='1632169950.05' WHERE source_name='4FGL J1829.5+4845' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949309/ft1_4FGL_J1829.5+4845_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949309/ft2_4FGL_J1829.5+4845_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949309/ft1_4FGL_J1829.5+4845_daily_bin425.fits outfile=/scratch/kocevski/949309/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin425.fits ra=277.4 dec=48.7646 rad=12.0 tmin=349488001.0 tmax=349747201.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.42
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949309/ft1_filtered_4FGL_J1829.5+4845_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/949309/ft2_4FGL_J1829.5+4845_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/949309/ltcube_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.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/949309/ft2_4FGL_J1829.5+4845_daily_bin425.fits
.....................!
real 11.87
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949309/ft1_filtered_4FGL_J1829.5+4845_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/949309/ft2_4FGL_J1829.5+4845_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/949309/ltcube_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.fits outfile=/scratch/kocevski/949309/expmap_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.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/949309/ltcube_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.fits
.....................!
real 191.52
user 185.49
sys 5.69

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/949309/ft1_filtered_4FGL_J1829.5+4845_daily_bin425.fits scfile=/scratch/kocevski/949309/ft2_4FGL_J1829.5+4845_daily_bin425.fits outfile=/scratch/kocevski/949309/cmap_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949309/ft1_filtered_4FGL_J1829.5+4845_daily_bin425.fits scfile=/scratch/kocevski/949309/ft2_4FGL_J1829.5+4845_daily_bin425.fits outfile=/scratch/kocevski/949309/cmap_HighResolution_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/949309/ft1_filtered_4FGL_J1829.5+4845_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/949309/ft2_4FGL_J1829.5+4845_daily_bin425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/949309/Model_4FGL_J1829.5+4845_daily_bin425.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/949309/ft1_filtered_4FGL_J1829.5+4845_daily_bin425.fits.....................!
real 90.40
user 89.04
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/949309/ft1_filtered_4FGL_J1829.5+4845_daily_bin425.fits', '/scratch/kocevski/949309/ft2_4FGL_J1829.5+4845_daily_bin425.fits', expMap='/scratch/kocevski/949309/expmap_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.fits', expCube='/scratch/kocevski/949309/ltcube_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/949309/Model_4FGL_J1829.5+4845_daily_bin425.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/949309/ft1_filtered_4FGL_J1829.5+4845_daily_bin425.fits
Spacecraft file(s): /scratch/kocevski/949309/ft2_4FGL_J1829.5+4845_daily_bin425.fits
Exposure map: /scratch/kocevski/949309/expmap_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.fits
Exposure cube: /scratch/kocevski/949309/ltcube_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/949309/Model_4FGL_J1829.5+4845_daily_bin425.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) = 9145.56210101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51430       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36928       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    109.14       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8369       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7492       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6594       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3174       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8758       1.0000         .10000E-03   10000.    
    15 'norm      '    23.732       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9411       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6371       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4120       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77186       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2765       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.

 FCN=   9145.541     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2129 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51442        1.4755        .11658E-05    .88738E-05
   2  Prefactor     .36926        1.3408        .45704E-06   -.38082E-03
   3  norm          .10000E-03    2.8538        .12045E-07** at limit **
   4  Prefactor     69.953        51.517       -.67443E-06   -.13468E-03
   5  Prefactor     .10000E-03    2.1249       -.10323E-06** at limit **
   6  Prefactor     .10000E-03    38.884       -.52433E-06** at limit **
   7  Prefactor     108.83        105.93       -.43317E-05   -.38425E-03
   8  Prefactor     .10000E-03    15.562       -.30441E-06** at limit **
   9  Prefactor     1.8335        18.140        .22286E-05   -.30900E-04
  10  Prefactor     6.7424        23.748       -.83940E-06   -.47924E-04
  11  norm          2.6552        7.9901        .99830E-06   -.61383E-04
  12  Prefactor     .10000E-03    7.7357       -.38455E-06** at limit **
  13  norm          3.3162        9.7652        .14353E-04   -.19815E-03
  14  Prefactor     4.8775        19.385       -.61160E-06   -.17326E-04
  15  norm          23.729        13.545        .28559E-06   -.49901E-04
  16  norm          5.9425        9.9098        .33465E-06   -.12303E-04
  17  Prefactor     4.6371        2.5225        .13358E-06   -.59470E-04
  18  norm          3.4125        2.7975        .27320E-05   -.48218E-03
  19  Normalizat    .77232        .24158       -.44096E-06   -.23460E-03
  20  Prefactor     1.2762        .12284       -.19629E-05   -.11570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.514421
  Prefactor  = 0.369261
  norm       = 0.0001
  Prefactor  = 69.9534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 108.833
  Prefactor  = 0.0001
  Prefactor  = 1.83351
  Prefactor  = 6.74239
  norm       = 2.65522
  Prefactor  = 0.0001
  norm       = 3.3162
  Prefactor  = 4.87752
  norm       = 23.7295
  norm       = 5.94251
  Prefactor  = 4.63709
  norm       = 3.41253
  Normalizat = 0.772321
  Prefactor  = 1.27622
 **********
 **   18 **HESSE 
 **********

 FCN=   9145.541     FROM HESSE     STATUS=OK           301 CALLS     2430 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51442        1.4447        .18647E-03   -1.5565    
   2  Prefactor     .36926        1.8736        .20462E-02   -1.5586    
   3  norm          .10000E-03    2.8800        .15769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     69.953        51.360        .23993E-03   -1.4033    
   5  Prefactor     .10000E-03    2.1430        .13606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     108.83        106.16        .19249E-03   -1.3618    
   8  Prefactor     .10000E-03    15.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8335        17.836        .30784E-03   -1.5437    
  10  Prefactor     6.7424        23.733        .15445E-03   -1.5189    
  11  norm          2.6552        7.9004        .24995E-03   -1.5382    
  12  Prefactor     .10000E-03    7.7508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3162        9.7876        .11113E-02   -1.5344    
  14  Prefactor     4.8775        19.368        .18217E-03   -1.5266    
  15  norm          23.729        13.535        .82226E-04   -1.4733    
  16  norm          5.9425        9.8995        .16475E-03   -1.5220    
  17  Prefactor     4.6371        2.5198        .10747E-03   -1.5277    
  18  norm          3.4125        2.7920        .70018E-03   -1.5338    
  19  Normalizat    .77232        .26500        .43325E-03   -1.0110    
  20  Prefactor     1.2762        .13618        .18465E-03   -.84017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06215e-08
Minuit parameter uncertainties:
  1  1.44477
  2  1.6634
  3  5.31445e-06
  4  51.3929
  5  4.25057e-06
  6  8.51149e-05
  7  106.348
  8  9.17303e-06
  9  11.4414
  10  23.7664
  11  7.90346
  12  1.27187e-05
  13  9.79233
  14  19.3931
  15  13.5372
  16  9.90224
  17  2.51988
  18  2.79215
  19  0.265441
  20  0.136222
Done.

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

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  2.373e+01  1.354e+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:  1.276e+00  1.362e-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:  7.723e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.36
Ra Dec: 277.400 48.765
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 8.98e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 1.66e-05

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) = 9145.52297254
delta logL = 0.0184650202791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9145.51912892
delta logL = 0.0223086362239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4687       1.0000          .0000       5.0000    
     3 'Normalizat'    .76323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2796       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.

 FCN=   9145.519     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.578        258.05        .21070E-02    .81001E-04
   2  alpha         2.4694        3.6296        .39556        .52064E-04
   3  Normalizat    .76348        .10564        .98276E-01    .34609E-04
   4  Prefactor     1.2795        .55395E-01    .32975E-01   -.99527E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.5778
  alpha      = 2.4694
  Normalizat = 0.763481
  Prefactor  = 1.2795
 **********
 **   18 **HESSE 
 **********

 FCN=   9145.519     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.578        14.530        .84279E-04   -1.4757    
   2  alpha         2.4694        .55668        .14573E-01   -.12241E-01
   3  Normalizat    .76348        .25585        .43550E-03   -1.0144    
   4  Prefactor     1.2795        .13587        .18445E-03   -.83919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0572e-11
Minuit parameter uncertainties:
  1  14.5323
  2  0.561392
  3  0.25625
  4  0.135909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949309': 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) = 9145.51912744
delta logL = 0.022310114331

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  2.258e+01  1.453e+01  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  2.469e+00  5.614e-01  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:  1.280e+00  1.359e-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:  7.635e-01  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.44
Ra Dec: 277.400 48.765
Photon Index (Free Index): 2.47 +/- 0.56
Photon Flux (Free Index): 9.55e-08 +/- 5.76e-08
Energy Flux (Free Index): 2.76e-05 +/- 1.73e-05

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/949309/cmap_HighResolution_349488001_349747201_4FGL_J1829.5+4845_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.98e-08', energy_flux2='2.76e-05', photon_flux_error='5.12e-08', dlogl='2.23e-02', energy_flux='2.92e-05', photon_flux2='9.55e-08', job_status='DONE', time_completed='2021-09-20 13:45:28.053372', photon_index_error2='0.56', photon_index2='2.47', ts='5.36', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='0.77', time_epoch_completed='1632170728.05', return_code='0', job_id='949309', GAL2='1.28', EG2='0.76', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.76e-08', ts2='5.44', photon_index='2.36' WHERE bin_id='425' AND source_name='4FGL J1829.5+4845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:45:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 949309: <4FGL_J1829.5+4845_daily_bin425> in cluster <slac> Done

Job <4FGL_J1829.5+4845_daily_bin425> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 20 13:30:27 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 13:31:01 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:31:01 2021
Terminated at Mon Sep 20 13:45:28 2021
Results reported at Mon Sep 20 13:45:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.5+4845_daily_bin425 277.4 48.7646 349488001 349747201 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 :                                   775.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            901 sec.

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

