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


Performing analysis on: 4FGL_J1829.5+4845_daily_bin317
RA = 277.4, Dec = 48.7646
tmin = 321494401, tmax = 321753601
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='948377', job_status='RUN', time_executed='2021-09-20 13:27:11.059612', time_epoch_executed='1632169631.06' WHERE source_name='4FGL J1829.5+4845' and cadence='daily' and bin_id='317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948377/ft1_4FGL_J1829.5+4845_daily_bin317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948377/ft2_4FGL_J1829.5+4845_daily_bin317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948377/ft1_4FGL_J1829.5+4845_daily_bin317.fits outfile=/scratch/kocevski/948377/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin317.fits ra=277.4 dec=48.7646 rad=12.0 tmin=321494401.0 tmax=321753601.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.95
user 3.68
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948377/ft1_filtered_4FGL_J1829.5+4845_daily_bin317.fits evtable="EVENTS" scfile=/scratch/kocevski/948377/ft2_4FGL_J1829.5+4845_daily_bin317.fits sctable="SC_DATA" expcube=/scratch/kocevski/948377/ltcube_321494401_321753601_4FGL_J1829.5+4845_daily_bin317.fits outfile=/scratch/kocevski/948377/expmap_321494401_321753601_4FGL_J1829.5+4845_daily_bin317.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/948377/ltcube_321494401_321753601_4FGL_J1829.5+4845_daily_bin317.fits
.....................!
real 191.04
user 185.56
sys 5.11

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/948377/ft1_filtered_4FGL_J1829.5+4845_daily_bin317.fits scfile=/scratch/kocevski/948377/ft2_4FGL_J1829.5+4845_daily_bin317.fits outfile=/scratch/kocevski/948377/cmap_321494401_321753601_4FGL_J1829.5+4845_daily_bin317.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/948377/ft1_filtered_4FGL_J1829.5+4845_daily_bin317.fits scfile=/scratch/kocevski/948377/ft2_4FGL_J1829.5+4845_daily_bin317.fits outfile=/scratch/kocevski/948377/cmap_HighResolution_321494401_321753601_4FGL_J1829.5+4845_daily_bin317.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84611       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .85880E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.064       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.9270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.140       1.0000         .10000E-03   10000.    
    13 'norm      '    21.846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.967       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0738       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .53167       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1182       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98806       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=   10185.74     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2037 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84598        1.5161        .53041E-06   -.35136E-04
   2  Prefactor     .10000E-03    1.6263        .73986E-08** at limit **
   3  norm          .10000E-03    4.6324        .18185E-08** at limit **
   4  Prefactor     .10000E-03    23.783        .52374E-07** at limit **
   5  Prefactor     .10000E-03    2.2773        .34886E-07** at limit **
   6  Prefactor     .10000E-03    46.533        .10571E-05** at limit **
   7  Prefactor     .10000E-03    72.746       -.72946E-06** at limit **
   8  Prefactor     .10000E-03    33.212       -.59654E-06** at limit **
   9  Prefactor     12.065        8.7496       -.79297E-08   -.38441E-04
  10  Prefactor     .10000E-03    6.2643       -.75194E-08** at limit **
  11  norm          9.9278        7.2050        .56929E-07   -.33224E-04
  12  Prefactor     18.129        17.982        .94918E-06   -.49063E-04
  13  norm          21.847        9.5024        .20727E-07   -.31981E-04
  14  Prefactor     47.973        35.426        .73121E-07    .24089E-04
  15  norm          8.0750        6.8954       -.53745E-07   -.68119E-04
  16  norm          .10000E-03    3.5164       -.23108E-07** at limit **
  17  Prefactor     .53217        1.5491        .11717E-05   -.14783E-03
  18  norm          .10000E-03    1.1480        .24720E-07** at limit **
  19  Normalizat    1.1180        .20087       -.82747E-06   -.77703E-04
  20  Prefactor     .98806        .98376E-01   -.54109E-07   -.16377E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.845979
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 12.0652
  Prefactor  = 0.0001
  norm       = 9.92775
  Prefactor  = 18.1293
  norm       = 21.8472
  Prefactor  = 47.9727
  norm       = 8.07495
  norm       = 0.0001
  Prefactor  = 0.532171
  norm       = 0.0001
  Normalizat = 1.11802
  Prefactor  = 0.988063
 **********
 **   18 **HESSE 
 **********

 FCN=   10185.74     FROM HESSE     STATUS=OK           291 CALLS     2328 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84598        1.5051        .15934E-03   -1.5524    
   2  Prefactor     .10000E-03    1.6397        .12563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.7152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.814        .28460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    73.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.065        8.7501        .11533E-03   -1.5013    
  10  Prefactor     .10000E-03    6.2658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.9278        7.2063        .12718E-03   -1.5078    
  12  Prefactor     18.129        18.013        .47019E-03   -1.4856    
  13  norm          21.847        9.5045        .85697E-04   -1.4773    
  14  Prefactor     47.973        35.430        .57897E-04   -1.4322    
  15  norm          8.0750        6.8955        .14110E-03   -1.5140    
  16  norm          .10000E-03    3.5196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .53217        1.5472        .20627E-03   -1.5562    
  18  norm          .10000E-03    1.2042        .21116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1180        .23265        .34410E-03   -.89175    
  20  Prefactor     .98806        .11661        .19139E-03   -.93128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13905e-10
Minuit parameter uncertainties:
  1  1.50512
  2  6.17037e-07
  3  2.66435e-06
  4  4.82039e-05
  5  8.46747e-06
  6  0.000677714
  7  0.000595821
  8  0.000297718
  9  8.75105
  10  7.91463e-07
  11  7.20695
  12  18.0181
  13  9.50515
  14  35.4453
  15  6.8962
  16  8.46011e-07
  17  1.54727
  18  1.17001e-06
  19  0.232862
  20  0.116642
Done.

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

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  8.075e+00  6.896e+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

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  9.881e-01  1.166e-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.118e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.73
Ra Dec: 277.400 48.765
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 3.06e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 9.93e-06 +/- 8.48e-06

TS (Fixed Index): 3.73
Ra Dec: 277.400 48.765
Photon Flux Upper Limit: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948377/likelihoodResults_321494401_321753601_4FGL_J1829.5+4845_daily_bin317.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) = 10184.8595324
delta logL = 0.877129321349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10184.7548915
delta logL = 0.98177023083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5809       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3787       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98398       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=   10184.75     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5755        4.3257        .47018E-02   -.14238E-03
   2  alpha         1.3774        .37091        .44259       -.56686E-04
   3  Normalizat    1.1390        .18406        .77093E-01   -.43675E-04
   4  Prefactor     .98400        .97441E-01    .46067E-01   -.12493E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.57555
  alpha      = 1.37738
  Normalizat = 1.13899
  Prefactor  = 0.984004
 **********
 **   18 **HESSE 
 **********

 FCN=   10184.75     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5755        6.3401        .18807E-03   -1.5280    
   2  alpha         1.3774        .65112        .16190E-01   -.46570    
   3  Normalizat    1.1390        .21678        .34123E-03   -.88510    
   4  Prefactor     .98400        .11498        .19174E-03   -.93265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62258e-09
Minuit parameter uncertainties:
  1  6.34099
  2  0.660712
  3  0.216946
  4  0.115009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948377': 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) = 10184.754889
delta logL = 0.981772758612

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  4.576e+00  6.341e+00  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  1.377e+00  6.607e-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:  9.840e-01  1.150e-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.139e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.66
Ra Dec: 277.400 48.765
Photon Index (Free Index): 1.38 +/- 0.66
Photon Flux (Free Index): 1.02e-08 +/- 1.36e-08
Energy Flux (Free Index): 2.46e-05 +/- 3.25e-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/948377/cmap_HighResolution_321494401_321753601_4FGL_J1829.5+4845_daily_bin317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', comment='SUCCESS', photon_flux='3.06e-08', energy_flux2='2.46e-05', photon_flux_error='2.61e-08', dlogl='9.82e-01', energy_flux='9.93e-06', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-20 13:42:28.243560', photon_index_error2='0.66', photon_index2='1.38', ts='3.73', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.57e-08', energy_flux_error2='3.25e-05', EG='1.12', time_epoch_completed='1632170548.24', return_code='0', job_id='948377', GAL2='0.98', EG2='1.14', return_code2='0', energy_flux_error='8.48e-06', photon_flux_error2='1.36e-08', ts2='5.66', photon_index='2.36' WHERE bin_id='317' AND source_name='4FGL J1829.5+4845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:42:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 948377: <4FGL_J1829.5+4845_daily_bin317> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.5+4845_daily_bin317 277.4 48.7646 321494401 321753601 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 :                                   914.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            964 sec.

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

