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


Performing analysis on: 4FGL_J1829.5+4845_daily_bin253
RA = 277.4, Dec = 48.7646
tmin = 304905601, tmax = 305164801
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='948277', job_status='RUN', time_executed='2021-09-20 13:27:45.353268', time_epoch_executed='1632169665.35' WHERE source_name='4FGL J1829.5+4845' and cadence='daily' and bin_id='253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948277/ft1_4FGL_J1829.5+4845_daily_bin253.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948277/ft2_4FGL_J1829.5+4845_daily_bin253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948277/ft1_4FGL_J1829.5+4845_daily_bin253.fits outfile=/scratch/kocevski/948277/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin253.fits ra=277.4 dec=48.7646 rad=12.0 tmin=304905601.0 tmax=305164801.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.48
user 3.26
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948277/ft1_filtered_4FGL_J1829.5+4845_daily_bin253.fits evtable="EVENTS" scfile=/scratch/kocevski/948277/ft2_4FGL_J1829.5+4845_daily_bin253.fits sctable="SC_DATA" expcube=/scratch/kocevski/948277/ltcube_304905601_305164801_4FGL_J1829.5+4845_daily_bin253.fits outfile=/scratch/kocevski/948277/expmap_304905601_305164801_4FGL_J1829.5+4845_daily_bin253.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/948277/ltcube_304905601_305164801_4FGL_J1829.5+4845_daily_bin253.fits
.....................!
real 191.14
user 185.45
sys 5.21

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/948277/ft1_filtered_4FGL_J1829.5+4845_daily_bin253.fits scfile=/scratch/kocevski/948277/ft2_4FGL_J1829.5+4845_daily_bin253.fits outfile=/scratch/kocevski/948277/cmap_304905601_305164801_4FGL_J1829.5+4845_daily_bin253.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/948277/ft1_filtered_4FGL_J1829.5+4845_daily_bin253.fits scfile=/scratch/kocevski/948277/ft2_4FGL_J1829.5+4845_daily_bin253.fits outfile=/scratch/kocevski/948277/cmap_HighResolution_304905601_305164801_4FGL_J1829.5+4845_daily_bin253.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9528       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13881       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10124E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6207       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5215       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.345       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13597E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.952       1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28537E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0646       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2649       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97219       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=   11478.60     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1862 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9532        1.6797        .44742E-07    .36209E-03
   2  Prefactor     .10000E-03    1.2308        .24805E-07** at limit **
   3  norm          .10000E-03    1.9745        .49962E-07** at limit **
   4  Prefactor     .10000E-03    21.258        .12174E-04** at limit **
   5  Prefactor     .11993        3.1840       -.35566E-05    .90216E-03
   6  Prefactor     50.091        51.500        .13347E-04    .40781E-03
   7  Prefactor     .10000E-03    174.96       -.52590E-04** at limit **
   8  Prefactor     .10000E-03    39.267       -.38154E-04** at limit **
   9  Prefactor     4.6222        6.8311       -.27611E-05   -.77095E-04
  10  Prefactor     .10000E-03    15.922       -.66600E-05** at limit **
  11  norm          4.5230        6.7409       -.33022E-05   -.18641E-03
  12  Prefactor     .10000E-03    12.887        .19337E-05** at limit **
  13  norm          12.345        7.7348        .72830E-08   -.20810E-03
  14  Prefactor     .10000E-03    54.667        .52723E-04** at limit **
  15  norm          21.951        9.9600       -.49840E-06   -.44159E-04
  16  norm          .10000E-03    8.6069       -.18246E-06** at limit **
  17  Prefactor     .10386E-01    .81452        .25271E-06   -.10810E-02
  18  norm          5.0649        2.4850       -.48655E-07   -.17970E-03
  19  Normalizat    1.2644        .19635        .85276E-06    .48071E-03
  20  Prefactor     .97234        .96444E-01   -.14281E-06    .53266E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.95323
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.119931
  Prefactor  = 50.0912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6222
  Prefactor  = 0.0001
  norm       = 4.52303
  Prefactor  = 0.0001
  norm       = 12.3454
  Prefactor  = 0.000100004
  norm       = 21.9515
  norm       = 0.0001
  Prefactor  = 0.0103856
  norm       = 5.0649
  Normalizat = 1.26437
  Prefactor  = 0.972341
 **********
 **   18 **HESSE 
 **********

 FCN=   11478.60     FROM HESSE     STATUS=OK           303 CALLS     2165 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9532        1.6815        .87587E-04   -1.5310    
   2  Prefactor     .10000E-03    1.2387        .11605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9852        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11993        3.4544        .51947E-01   -1.5639    
   6  Prefactor     50.091        52.145        .56667E-04   -1.4291    
   7  Prefactor     .10000E-03    176.25        .20754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6222        6.8269        .18724E-03   -1.5278    
  10  Prefactor     .10000E-03    15.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5230        6.7513        .18933E-03   -1.5283    
  12  Prefactor     .10000E-03    12.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.345        7.7539        .11401E-03   -1.5005    
  14  Prefactor     .10000E-03    54.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.951        9.9775        .85491E-04   -1.4771    
  16  norm          .10000E-03    8.6905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10386E-01    1.9928        .32741E-01   -1.5688    
  18  norm          5.0649        2.4850        .11468E-03   -1.5258    
  19  Normalizat    1.2644        .23573        .34699E-03   -.84636    
  20  Prefactor     .97234        .11539        .20058E-03   -.93657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68548e-09
Minuit parameter uncertainties:
  1  1.68148
  2  2.23527e-06
  3  8.03946e-06
  4  3.41891e-05
  5  1.28685
  6  52.1921
  7  0.00015616
  8  0.000195313
  9  6.8281
  10  4.62215e-05
  11  6.75244
  12  4.07019e-05
  13  7.75456
  14  0.000926088
  15  9.97821
  16  3.21234e-06
  17  0.286344
  18  2.48509
  19  0.235932
  20  0.115416
Done.

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

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  2.195e+01  9.978e+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.723e-01  1.154e-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.264e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.33
Ra Dec: 277.400 48.765
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 8.31e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.23e-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) = 11478.5666742
delta logL = 0.0369512582492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11478.5613204
delta logL = 0.0423050308891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.131       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5072       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97729       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=   11478.56     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      246 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.127        10.332        .87134E-04    .18084E-03
   2  alpha         2.5080        .53667        .15323E-01    .18521E-03
   3  Normalizat    1.2497        .22747        .34870E-03   -.57381E-05
   4  Prefactor     .97710        .11524        .20015E-03    .23919E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.1275
  alpha      = 2.50801
  Normalizat = 1.24973
  Prefactor  = 0.977101
 **********
 **   18 **HESSE 
 **********

 FCN=   11478.56     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.127        10.148        .34853E-05   -1.4788    
   2  alpha         2.5080        .52678        .30647E-02    .32034E-02
   3  Normalizat    1.2497        .22753        .13948E-04   -.85080    
   4  Prefactor     .97710        .11528        .40031E-04   -.93497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07121e-10
Minuit parameter uncertainties:
  1  10.1486
  2  0.530755
  3  0.227706
  4  0.115309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948277': 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) = 11478.5613174
delta logL = 0.042308097738

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  2.113e+01  1.015e+01  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  2.508e+00  5.308e-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.771e-01  1.153e-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.250e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.41
Ra Dec: 277.400 48.765
Photon Index (Free Index): 2.51 +/- 0.53
Photon Flux (Free Index): 9.30e-08 +/- 5.21e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.18e-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/948277/cmap_HighResolution_304905601_305164801_4FGL_J1829.5+4845_daily_bin253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.31e-08', energy_flux2='2.60e-05', photon_flux_error='3.78e-08', dlogl='4.23e-02', energy_flux='2.70e-05', photon_flux2='9.30e-08', job_status='DONE', time_completed='2021-09-20 13:41:49.911254', photon_index_error2='0.53', photon_index2='2.51', ts='10.33', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.26', time_epoch_completed='1632170509.91', return_code='0', job_id='948277', GAL2='0.98', EG2='1.25', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.21e-08', ts2='10.41', photon_index='2.36' WHERE bin_id='253' AND source_name='4FGL J1829.5+4845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:41:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 948277: <4FGL_J1829.5+4845_daily_bin253> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.5+4845_daily_bin253 277.4 48.7646 304905601 305164801 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 :                                   843.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             343.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

