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


Performing analysis on: 4FGL_J1829.5+4845_daily_bin388
RA = 277.4, Dec = 48.7646
tmin = 339897601, tmax = 340156801
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='949257', job_status='RUN', time_executed='2021-09-20 13:31:11.008480', time_epoch_executed='1632169871.01' WHERE source_name='4FGL J1829.5+4845' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949257

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949257/ft1_4FGL_J1829.5+4845_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949257/ft2_4FGL_J1829.5+4845_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949257/ft1_4FGL_J1829.5+4845_daily_bin388.fits outfile=/scratch/kocevski/949257/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin388.fits ra=277.4 dec=48.7646 rad=12.0 tmin=339897601.0 tmax=340156801.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.30
user 3.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/949257/ft2_4FGL_J1829.5+4845_daily_bin388.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/949257/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin388.fits evtable="EVENTS" outfile="/scratch/kocevski/949257/ft1_filtered_4FGL_J1829.5+4845_daily_bin388.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/949257/ft1_filtered_4FGL_J1829.5+4845_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/949257/ft2_4FGL_J1829.5+4845_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/949257/ltcube_339897601_340156801_4FGL_J1829.5+4845_daily_bin388.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/949257/ft2_4FGL_J1829.5+4845_daily_bin388.fits
.....................!
real 11.88
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949257/ft1_filtered_4FGL_J1829.5+4845_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/949257/ft2_4FGL_J1829.5+4845_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/949257/ltcube_339897601_340156801_4FGL_J1829.5+4845_daily_bin388.fits outfile=/scratch/kocevski/949257/expmap_339897601_340156801_4FGL_J1829.5+4845_daily_bin388.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/949257/ltcube_339897601_340156801_4FGL_J1829.5+4845_daily_bin388.fits
.....................!
real 192.15
user 186.53
sys 5.25

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/949257/ft1_filtered_4FGL_J1829.5+4845_daily_bin388.fits scfile=/scratch/kocevski/949257/ft2_4FGL_J1829.5+4845_daily_bin388.fits outfile=/scratch/kocevski/949257/cmap_339897601_340156801_4FGL_J1829.5+4845_daily_bin388.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/949257/ft1_filtered_4FGL_J1829.5+4845_daily_bin388.fits scfile=/scratch/kocevski/949257/ft2_4FGL_J1829.5+4845_daily_bin388.fits outfile=/scratch/kocevski/949257/cmap_HighResolution_339897601_340156801_4FGL_J1829.5+4845_daily_bin388.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/949257/ft1_filtered_4FGL_J1829.5+4845_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/949257/ft2_4FGL_J1829.5+4845_daily_bin388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/949257/Model_4FGL_J1829.5+4845_daily_bin388.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/949257/ft1_filtered_4FGL_J1829.5+4845_daily_bin388.fits.....................!
real 92.36
user 90.77
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86581       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24706E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    57.126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.509       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2670       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.739       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.247       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1921       1.0000         .10000E-03   10000.    
    18 'norm      '    .29106E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0734       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93173       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=   9714.323     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2064 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86735        1.3974       -.10533E-06   -.73037E-03
   2  Prefactor     .10000E-03    .90240        .34765E-07** at limit **
   3  norm          .10000E-03    2.0030       -.64044E-07** at limit **
   4  Prefactor     .10000E-03    26.629       -.13340E-05** at limit **
   5  Prefactor     .10000E-03    2.2795        .15469E-05** at limit **
   6  Prefactor     57.145        42.527       -.41417E-05   -.41704E-03
   7  Prefactor     44.185        60.507        .70831E-05    .12758E-03
   8  Prefactor     47.498        35.817        .16948E-05    .84366E-04
   9  Prefactor     .10000E-03    7.4119        .11439E-07** at limit **
  10  Prefactor     .10000E-03    4.7904       -.78045E-07** at limit **
  11  norm          2.2679        7.0466        .72125E-05   -.30694E-03
  12  Prefactor     .10000E-03    10.331        .17688E-06** at limit **
  13  norm          12.740        7.8976        .12477E-06   -.25445E-04
  14  Prefactor     21.248        19.347       -.93559E-08   -.13464E-04
  15  norm          .10000E-03    2.4114       -.89065E-08** at limit **
  16  norm          4.7543        7.6762        .83741E-06   -.56342E-04
  17  Prefactor     4.1924        2.4427        .96960E-07    .12909E-05
  18  norm          .10154E-03    .99740       -.83351E-06** at limit **
  19  Normalizat    1.0732        .18846       -.15592E-05   -.20314E-03
  20  Prefactor     .93187        .95177E-01   -.82749E-07   -.27118E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.867349
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 57.1451
  Prefactor  = 44.1847
  Prefactor  = 47.4981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26793
  Prefactor  = 0.0001
  norm       = 12.74
  Prefactor  = 21.2483
  norm       = 0.0001
  norm       = 4.75426
  Prefactor  = 4.19239
  norm       = 0.000101538
  Normalizat = 1.07317
  Prefactor  = 0.931866
 **********
 **   18 **HESSE 
 **********

 FCN=   9714.323     FROM HESSE     STATUS=OK           299 CALLS     2363 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86735        1.2964        .14087E-02   -1.5522    
   2  Prefactor     .10000E-03    .90505        .91429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0231        .13617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8331        .27962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     57.145        42.982        .53077E-04   -1.4195    
   7  Prefactor     44.185        60.380        .60291E-04   -1.4378    
   8  Prefactor     47.498        35.839        .58174E-04   -1.4328    
   9  Prefactor     .10000E-03    7.4854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2679        7.1451        .13639E-02   -1.5407    
  12  Prefactor     .10000E-03    10.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.740        7.9004        .11223E-03   -1.4994    
  14  Prefactor     21.248        19.348        .86894E-04   -1.4786    
  15  norm          .10000E-03    2.4164        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7543        7.6721        .92264E-03   -1.5272    
  17  Prefactor     4.1924        2.4416        .11195E-03   -1.5298    
  18  norm          .10154E-03    1.5971        .34679E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0732        .22049        .33276E-03   -.90618    
  20  Prefactor     .93187        .11250        .18676E-03   -.95036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91021e-09
Minuit parameter uncertainties:
  1  1.29649
  2  4.78812e-07
  3  7.25356e-06
  4  0.000292075
  5  1.92488e-06
  6  43.0055
  7  60.4636
  8  35.855
  9  7.63777e-07
  10  3.41058e-06
  11  7.14779
  12  1.34176e-05
  13  7.90105
  14  19.3538
  15  2.50029e-07
  16  7.67364
  17  2.44169
  18  0.00313423
  19  0.220683
  20  0.112529
Done.

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

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  1.000e-04  2.500e-07  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.319e-01  1.125e-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.073e+00  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/949257/likelihoodResults_339897601_340156801_4FGL_J1829.5+4845_daily_bin388.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) = 9714.32463379
delta logL = -0.00196760475592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9714.32266648
delta logL = -2.90241587209e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3519       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93181       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=   9714.323     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      232 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    556.63        .14956E-02** at limit **
   2  alpha         2.2121        3.3083        .16497       -.36661E-07
   3  Normalizat    1.0732        .14719        .33276E-03    .61086E-04
   4  Prefactor     .93187        .78077E-01    .18676E-03    .11861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.21215
  Normalizat = 1.07317
  Prefactor  = 0.931866
 **********
 **   18 **HESSE 
 **********

 FCN=   9714.323     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4477        .29913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2121        3.2824        .65989E-02   -.11540    
   3  Normalizat    1.0732        .20992        .13310E-04   -.90618    
   4  Prefactor     .93187        .11138        .37352E-04   -.95036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43738e-11
Minuit parameter uncertainties:
  1  4.83092e-06
  2  196.088
  3  0.210078
  4  0.111409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949257': 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) = 9714.32266593
delta logL = 2.61348759523e-07

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  1.000e-04  4.831e-06  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  2.212e+00  1.961e+02  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.319e-01  1.114e-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.073e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 277.400 48.765

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/949257/cmap_HighResolution_339897601_340156801_4FGL_J1829.5+4845_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-05', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2021-09-20 13:46:04.143869', job_id='949257', GAL2='0.93', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632170764.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='388' AND source_name='4FGL J1829.5+4845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:46:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 949257: <4FGL_J1829.5+4845_daily_bin388> in cluster <slac> Done

Job <4FGL_J1829.5+4845_daily_bin388> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 20 13:30:24 2021
Job was executed on host(s) <bullet0055>, 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:46:04 2021
Results reported at Mon Sep 20 13:46:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.5+4845_daily_bin388 277.4 48.7646 339897601 340156801 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 :                                   886.33 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            940 sec.

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

