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


Performing analysis on: 4FGL_J1829.5+4845_daily_bin408
RA = 277.4, Dec = 48.7646
tmin = 345081601, tmax = 345340801
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='949286', job_status='RUN', time_executed='2021-09-20 13:31:11.757444', time_epoch_executed='1632169871.76' WHERE source_name='4FGL J1829.5+4845' and cadence='daily' and bin_id='408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949286

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949286/ft1_4FGL_J1829.5+4845_daily_bin408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949286/ft2_4FGL_J1829.5+4845_daily_bin408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949286/ft1_4FGL_J1829.5+4845_daily_bin408.fits outfile=/scratch/kocevski/949286/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin408.fits ra=277.4 dec=48.7646 rad=12.0 tmin=345081601.0 tmax=345340801.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.50
user 3.27
sys 0.20

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949286/ft1_filtered_4FGL_J1829.5+4845_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/949286/ft2_4FGL_J1829.5+4845_daily_bin408.fits sctable="SC_DATA" expcube=/scratch/kocevski/949286/ltcube_345081601_345340801_4FGL_J1829.5+4845_daily_bin408.fits outfile=/scratch/kocevski/949286/expmap_345081601_345340801_4FGL_J1829.5+4845_daily_bin408.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/949286/ltcube_345081601_345340801_4FGL_J1829.5+4845_daily_bin408.fits
.....................!
real 193.45
user 187.58
sys 5.47

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/949286/ft1_filtered_4FGL_J1829.5+4845_daily_bin408.fits scfile=/scratch/kocevski/949286/ft2_4FGL_J1829.5+4845_daily_bin408.fits outfile=/scratch/kocevski/949286/cmap_345081601_345340801_4FGL_J1829.5+4845_daily_bin408.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949286/ft1_filtered_4FGL_J1829.5+4845_daily_bin408.fits scfile=/scratch/kocevski/949286/ft2_4FGL_J1829.5+4845_daily_bin408.fits outfile=/scratch/kocevski/949286/cmap_HighResolution_345081601_345340801_4FGL_J1829.5+4845_daily_bin408.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/949286/ft1_filtered_4FGL_J1829.5+4845_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/949286/ft2_4FGL_J1829.5+4845_daily_bin408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/949286/Model_4FGL_J1829.5+4845_daily_bin408.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/949286/ft1_filtered_4FGL_J1829.5+4845_daily_bin408.fits.....................!
real 87.73
user 86.29
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37421       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.5870       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.483       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.647       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.141       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5000       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2867       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2063       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82273       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=   8867.918     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2023 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37406        1.5703        .31329E-06   -.63807E-03
   2  Prefactor     .10000E-03    1.9795       -.89843E-08** at limit **
   3  norm          8.5893        7.5137        .25325E-06   -.15953E-04
   4  Prefactor     .10000E-03    24.975       -.87930E-05** at limit **
   5  Prefactor     1.0525        6.0127        .36114E-06   -.50199E-03
   6  Prefactor     .10000E-03    29.443        .12353E-04** at limit **
   7  Prefactor     .10000E-03    46.421       -.49357E-05** at limit **
   8  Prefactor     28.472        34.083       -.80927E-05   -.16748E-03
   9  Prefactor     .10000E-03    7.3937        .23165E-06** at limit **
  10  Prefactor     .10000E-03    8.6876       -.55154E-06** at limit **
  11  norm          2.8140        3.6607        .12971E-05   -.24902E-02
  12  Prefactor     .10000E-03    6.4644       -.10031E-06** at limit **
  13  norm          11.646        8.6257       -.27177E-07   -.23293E-04
  14  Prefactor     .10000E-03    13.338        .85499E-06** at limit **
  15  norm          22.141        11.480       -.17169E-07   -.34180E-05
  16  norm          6.2561        10.774        .67646E-08   -.18931E-04
  17  Prefactor     2.4999        2.1057        .74030E-08   -.15200E-03
  18  norm          2.2867        1.4490       -.12385E-08    .66664E-04
  19  Normalizat    1.2064        .20299        .38855E-06   -.58208E-04
  20  Prefactor     .82267        .97125E-01   -.21489E-06    .34188E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.374065
  Prefactor  = 0.0001
  norm       = 8.58929
  Prefactor  = 0.000100001
  Prefactor  = 1.05251
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 28.4722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81398
  Prefactor  = 0.0001
  norm       = 11.6464
  Prefactor  = 0.0001
  norm       = 22.1406
  norm       = 6.25611
  Prefactor  = 2.49986
  norm       = 2.28667
  Normalizat = 1.20644
  Prefactor  = 0.822666
 **********
 **   18 **HESSE 
 **********

 FCN=   8867.918     FROM HESSE     STATUS=OK           293 CALLS     2316 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37406        1.6826        .22767E-03   -1.5586    
   2  Prefactor     .10000E-03    2.0122        .12934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.5893        7.4373        .13679E-03   -1.5122    
   4  Prefactor     .10000E-03    24.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0525        6.3146        .43045E-03   -1.5503    
   6  Prefactor     .10000E-03    29.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.472        34.138        .75068E-04   -1.4640    
   9  Prefactor     .10000E-03    7.4635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8140        6.0370        .12121E-02   -1.5372    
  12  Prefactor     .10000E-03    6.4739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.646        8.6509        .11738E-03   -1.5025    
  14  Prefactor     .10000E-03    13.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.141        11.502        .85125E-04   -1.4767    
  16  norm          6.2561        10.764        .16049E-03   -1.5208    
  17  Prefactor     2.4999        2.0976        .11977E-03   -1.5392    
  18  norm          2.2867        1.4551        .87971E-04   -1.5406    
  19  Normalizat    1.2064        .24545        .31866E-03   -.86404    
  20  Prefactor     .82267        .11674        .18999E-03   -.98898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16693e-09
Minuit parameter uncertainties:
  1  1.58657
  2  5.10407e-07
  3  7.43805
  4  0.000314584
  5  5.15658
  6  0.000653945
  7  0.00033086
  8  34.1613
  9  1.13127e-05
  10  1.65744e-05
  11  6.03827
  12  3.1547e-06
  13  8.65179
  14  2.84982e-05
  15  11.5031
  16  10.7674
  17  2.09762
  18  1.45511
  19  0.245687
  20  0.116774
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  8.227e-01  1.168e-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.206e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.73
Ra Dec: 277.400 48.765
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 8.38e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.41e-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) = 8867.79963567
delta logL = 0.118207061392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8867.79436497
delta logL = 0.123477760215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.192       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6208       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83024       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=   8867.794     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      273 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.192        11.994        .89134E-04    .45049E-03
   2  alpha         2.6209        .56469        .13950E-01    .43689E-04
   3  Normalizat    1.1830        .23364        .32128E-03   -.65604E-04
   4  Prefactor     .83025        .11565        .18921E-03   -.14276E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.1916
  alpha      = 2.62087
  Normalizat = 1.18302
  Prefactor  = 0.830251
 **********
 **   18 **HESSE 
 **********

 FCN=   8867.794     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.192        11.617        .35654E-05   -1.4809    
   2  alpha         2.6209        .54665        .55801E-03    .48368E-01
   3  Normalizat    1.1830        .23377        .12851E-04   -.87129    
   4  Prefactor     .83025        .11570        .75685E-05   -.98623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1973e-10
Minuit parameter uncertainties:
  1  11.618
  2  0.551113
  3  0.233975
  4  0.115734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949286': 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) = 8867.79436495
delta logL = 0.123477775418

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  2.019e+01  1.162e+01  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  2.621e+00  5.511e-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:  8.303e-01  1.157e-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.183e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.09
Ra Dec: 277.400 48.765
Photon Index (Free Index): 2.62 +/- 0.55
Photon Flux (Free Index): 1.00e-07 +/- 5.65e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.29e-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/949286/cmap_HighResolution_345081601_345340801_4FGL_J1829.5+4845_daily_bin408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.38e-08', energy_flux2='2.55e-05', photon_flux_error='4.35e-08', dlogl='1.23e-01', energy_flux='2.72e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-20 13:43:46.958441', photon_index_error2='0.55', photon_index2='2.62', ts='6.73', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.21', time_epoch_completed='1632170626.96', return_code='0', job_id='949286', GAL2='0.83', EG2='1.18', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='5.65e-08', ts2='7.09', photon_index='2.36' WHERE bin_id='408' AND source_name='4FGL J1829.5+4845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:43:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 949286: <4FGL_J1829.5+4845_daily_bin408> in cluster <slac> Done

Job <4FGL_J1829.5+4845_daily_bin408> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 20 13:30:26 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 13:30:57 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:30:57 2021
Terminated at Mon Sep 20 13:43:47 2021
Results reported at Mon Sep 20 13:43:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.5+4845_daily_bin408 277.4 48.7646 345081601 345340801 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 :                                   747.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            801 sec.

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

