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


Performing analysis on: 4FGL_J1829.5+4845_daily_bin265
RA = 277.4, Dec = 48.7646
tmin = 308016001, tmax = 308275201
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='948294', job_status='RUN', time_executed='2021-09-20 13:26:55.222415', time_epoch_executed='1632169615.22' WHERE source_name='4FGL J1829.5+4845' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948294/ft1_4FGL_J1829.5+4845_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948294/ft2_4FGL_J1829.5+4845_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948294/ft1_4FGL_J1829.5+4845_daily_bin265.fits outfile=/scratch/kocevski/948294/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin265.fits ra=277.4 dec=48.7646 rad=12.0 tmin=308016001.0 tmax=308275201.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.38
user 3.19
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948294/ft2_4FGL_J1829.5+4845_daily_bin265.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/948294/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin265.fits evtable="EVENTS" outfile="/scratch/kocevski/948294/ft1_filtered_4FGL_J1829.5+4845_daily_bin265.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/948294/ft1_filtered_4FGL_J1829.5+4845_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/948294/ft2_4FGL_J1829.5+4845_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/948294/ltcube_308016001_308275201_4FGL_J1829.5+4845_daily_bin265.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/948294/ft2_4FGL_J1829.5+4845_daily_bin265.fits
.....................!
real 14.37
user 13.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948294/ft1_filtered_4FGL_J1829.5+4845_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/948294/ft2_4FGL_J1829.5+4845_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/948294/ltcube_308016001_308275201_4FGL_J1829.5+4845_daily_bin265.fits outfile=/scratch/kocevski/948294/expmap_308016001_308275201_4FGL_J1829.5+4845_daily_bin265.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/948294/ltcube_308016001_308275201_4FGL_J1829.5+4845_daily_bin265.fits
.....................!
real 189.85
user 185.18
sys 4.32

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/948294/ft1_filtered_4FGL_J1829.5+4845_daily_bin265.fits scfile=/scratch/kocevski/948294/ft2_4FGL_J1829.5+4845_daily_bin265.fits outfile=/scratch/kocevski/948294/cmap_308016001_308275201_4FGL_J1829.5+4845_daily_bin265.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948294/ft1_filtered_4FGL_J1829.5+4845_daily_bin265.fits scfile=/scratch/kocevski/948294/ft2_4FGL_J1829.5+4845_daily_bin265.fits outfile=/scratch/kocevski/948294/cmap_HighResolution_308016001_308275201_4FGL_J1829.5+4845_daily_bin265.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1985       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2703       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    81.771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7962       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92997       1.0000         .10000E-03   10000.    
    11 'norm      '    8.3939       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .16717E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.439       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .19692E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0070       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0925       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=   8847.404     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2071 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1986        1.9438       -.15775E-06   -.31099E-03
   2  Prefactor     .10000E-03    2.0317        .24070E-07** at limit **
   3  norm          6.5059        5.5705        .20027E-06   -.19294E-03
   4  Prefactor     5.2677        39.326       -.80258E-05   -.13816E-04
   5  Prefactor     .10000E-03    1.8422        .53383E-06** at limit **
   6  Prefactor     30.358        44.936       -.47753E-04   -.52386E-04
   7  Prefactor     81.779        99.335        .13893E-04   -.34296E-04
   8  Prefactor     .10000E-03    12.893       -.26302E-05** at limit **
   9  Prefactor     4.7959        8.1249       -.69902E-06   -.13917E-03
  10  Prefactor     .70422        22.966        .34291E-05   -.25588E-03
  11  norm          8.3938        8.1029       -.37832E-06   -.81085E-04
  12  Prefactor     .10000E-03    6.9924        .16171E-05** at limit **
  13  norm          .10000E-03    9.7342        .46462E-05** at limit **
  14  Prefactor     .10000E-03    13.855        .93958E-07** at limit **
  15  norm          17.440        12.468       -.74706E-05   -.11597E-03
  16  norm          .10000E-03    5.8820       -.15932E-06** at limit **
  17  Prefactor     .10000E-03    1.0720        .39268E-06** at limit **
  18  norm          .10003E-03    1.1661       -.80405E-06** at limit **
  19  Normalizat    1.0069        .22380        .63834E-05   -.32061E-03
  20  Prefactor     1.0926        .11105       -.65632E-06    .65035E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.19857
  Prefactor  = 0.0001
  norm       = 6.50595
  Prefactor  = 5.2677
  Prefactor  = 0.000100001
  Prefactor  = 30.3583
  Prefactor  = 81.779
  Prefactor  = 0.0001
  Prefactor  = 4.79592
  Prefactor  = 0.704223
  norm       = 8.39375
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.4404
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100028
  Normalizat = 1.00686
  Prefactor  = 1.09258
 **********
 **   18 **HESSE 
 **********

 FCN=   8847.404     FROM HESSE     STATUS=OK           299 CALLS     2370 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1986        1.9432        .98129E-04   -1.5350    
   2  Prefactor     .10000E-03    2.0854        .26174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.5059        5.5660        .15734E-03   -1.5198    
   4  Prefactor     5.2677        39.285        .17508E-03   -1.5249    
   5  Prefactor     .10000E-03    1.8597        .12472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.358        44.927        .72645E-04   -1.4605    
   7  Prefactor     81.779        99.479        .44417E-04   -1.3897    
   8  Prefactor     .10000E-03    12.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7959        8.1134        .18371E-03   -1.5270    
  10  Prefactor     .70422        28.864        .13182       -1.5540    
  11  norm          8.3938        8.1019        .13837E-03   -1.5128    
  12  Prefactor     .10000E-03    7.0153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.440        12.440        .95909E-04   -1.4872    
  16  norm          .10000E-03    5.8896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1090        .18562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10003E-03    8.4914        .19632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0069        .26063        .36736E-03   -.92801    
  20  Prefactor     1.0926        .12990        .18479E-03   -.89704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55582e-09
Minuit parameter uncertainties:
  1  1.94328
  2  3.65875e-06
  3  5.56643
  4  28.7973
  5  7.55039e-05
  6  44.9774
  7  99.6823
  8  1.82095e-05
  9  8.11523
  10  9.02112
  11  8.10297
  12  8.54005e-06
  13  0.000116361
  14  9.03549e-06
  15  12.4423
  16  4.16203e-05
  17  5.03077e-05
  18  0.000980735
  19  0.260957
  20  0.129942
Done.

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

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  1.744e+01  1.244e+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.093e+00  1.299e-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.007e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 277.400 48.765
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/948294/likelihoodResults_308016001_308275201_4FGL_J1829.5+4845_daily_bin265.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) = 8844.42798237
delta logL = 2.9756737131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8844.28517835
delta logL = 3.11847773239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5577       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .81723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1643       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=   8844.285     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      324 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5580        12.433        .85259E-02    .41872E-03
   2  alpha         5.0000        2.7579        .46372    ** at limit **
   3  Normalizat    .81716        .16684        .90964E-01    .34782E-04
   4  Prefactor     1.1643        .85823E-01    .35535E-01   -.83355E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.55805
  alpha      = 5
  Normalizat = 0.817156
  Prefactor  = 1.16429
 **********
 **   18 **HESSE 
 **********

 FCN=   8844.285     FROM HESSE     STATUS=OK            35 CALLS      359 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5580        .86314        .45249E-04   -1.5458    
   2  alpha         5.0000        .58880        .44724        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81716        .25864        .40292E-03   -.99435    
   4  Prefactor     1.1643        .13240        .17971E-03   -.87437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50843e-12
Minuit parameter uncertainties:
  1  0.863148
  2  2.77104e-07
  3  0.25903
  4  0.132436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948294': 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) = 8844.28517776
delta logL = 3.11847833041

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  1.558e+00  8.631e-01  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  5.000e+00  2.771e-07  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.164e+00  1.324e-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:  8.172e-01  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.05
Ra Dec: 277.400 48.765
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.76e-07 +/- 9.72e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.31e-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/948294/cmap_HighResolution_308016001_308275201_4FGL_J1829.5+4845_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-05', comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='2.37e-05', photon_flux_error='4.71e-08', dlogl='3.12e+00', energy_flux='2.14e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-20 13:41:13.640470', photon_index_error2='0.00', photon_index2='5.00', ts='2.95', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.31e-05', EG='1.01', time_epoch_completed='1632170473.64', return_code='0', job_id='948294', GAL2='1.16', EG2='0.82', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='9.72e-08', ts2='10.05', photon_index='2.36' WHERE bin_id='265' AND source_name='4FGL J1829.5+4845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:41:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 948294: <4FGL_J1829.5+4845_daily_bin265> in cluster <slac> Done

Job <4FGL_J1829.5+4845_daily_bin265> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Sep 20 13:26:18 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 13:26: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:26:24 2021
Terminated at Mon Sep 20 13:41:14 2021
Results reported at Mon Sep 20 13:41:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.5+4845_daily_bin265 277.4 48.7646 308016001 308275201 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 :                                   854.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            896 sec.

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

