/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 86 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1829.5+4845_daily_bin724
RA = 277.4, Dec = 48.7646
tmin = 426988801, tmax = 427248001
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='952141', job_status='RUN', time_executed='2021-09-20 13:42:20.190802', time_epoch_executed='1632170540.19' WHERE source_name='4FGL J1829.5+4845' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952141

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952141/ft1_4FGL_J1829.5+4845_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952141/ft2_4FGL_J1829.5+4845_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952141/ft1_4FGL_J1829.5+4845_daily_bin724.fits outfile=/scratch/kocevski/952141/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin724.fits ra=277.4 dec=48.7646 rad=12.0 tmin=426988801.0 tmax=427248001.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 5.78
user 5.51
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952141/ft2_4FGL_J1829.5+4845_daily_bin724.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/952141/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin724.fits evtable="EVENTS" outfile="/scratch/kocevski/952141/ft1_filtered_4FGL_J1829.5+4845_daily_bin724.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/952141/ft1_filtered_4FGL_J1829.5+4845_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/952141/ft2_4FGL_J1829.5+4845_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/952141/ltcube_426988801_427248001_4FGL_J1829.5+4845_daily_bin724.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/952141/ft2_4FGL_J1829.5+4845_daily_bin724.fits
.....................!
real 12.29
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952141/ft1_filtered_4FGL_J1829.5+4845_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/952141/ft2_4FGL_J1829.5+4845_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/952141/ltcube_426988801_427248001_4FGL_J1829.5+4845_daily_bin724.fits outfile=/scratch/kocevski/952141/expmap_426988801_427248001_4FGL_J1829.5+4845_daily_bin724.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/952141/ltcube_426988801_427248001_4FGL_J1829.5+4845_daily_bin724.fits
.....................!
real 190.37
user 185.80
sys 4.23

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/952141/ft1_filtered_4FGL_J1829.5+4845_daily_bin724.fits scfile=/scratch/kocevski/952141/ft2_4FGL_J1829.5+4845_daily_bin724.fits outfile=/scratch/kocevski/952141/cmap_426988801_427248001_4FGL_J1829.5+4845_daily_bin724.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952141/ft1_filtered_4FGL_J1829.5+4845_daily_bin724.fits scfile=/scratch/kocevski/952141/ft2_4FGL_J1829.5+4845_daily_bin724.fits outfile=/scratch/kocevski/952141/cmap_HighResolution_426988801_427248001_4FGL_J1829.5+4845_daily_bin724.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7056       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.0606       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5620       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9808       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4418       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.020       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.390       1.0000         .10000E-03   10000.    
    15 'norm      '    18.873       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7145       1.0000         .10000E-03   10000.    
    18 'norm      '    5.3167       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1373       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97594       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=   9585.682     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1996 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7057        1.6091        .61910E-02    .86635E-03
   2  Prefactor     .10000E-03    1.6180        .90712E-02** at limit **
   3  norm          7.0605        5.0734        .37743E-02    .29796E-03
   4  Prefactor     9.5617        26.119        .32399E-02    .29321E-04
   5  Prefactor     1.9812        3.8965        .73625E-02    .12718E-02
   6  Prefactor     .10000E-03    18.948        .90712E-02** at limit **
   7  Prefactor     .10000E-03    53.562        .90712E-02** at limit **
   8  Prefactor     .10000E-03    14.153        .90712E-02** at limit **
   9  Prefactor     6.4419        5.4827        .39533E-02   -.51508E-03
  10  Prefactor     .10001E-03    23.559        .90712E-02** at limit **
  11  norm          11.021        8.1476        .30171E-02    .19490E-02
  12  Prefactor     .10000E-03    24.009        .90712E-02** at limit **
  13  norm          10.009        10.942        .31666E-02    .13174E-03
  14  Prefactor     23.390        29.866        .20706E-02    .93823E-04
  15  norm          18.875        13.987        .23048E-02    .19104E-03
  16  norm          .10000E-03    4.5319        .90712E-02** at limit **
  17  Prefactor     5.7148        2.9773        .42007E-02    .62945E-03
  18  norm          5.3167        3.0245        .43576E-02    .11124E-03
  19  Normalizat    1.1372        .21381        .81330E-01    .17957E-03
  20  Prefactor     .97599        .10243        .45966E-01    .14426E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70575
  Prefactor  = 0.0001
  norm       = 7.06047
  Prefactor  = 9.56166
  Prefactor  = 1.98119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.44191
  Prefactor  = 0.000100005
  norm       = 11.0211
  Prefactor  = 0.000100001
  norm       = 10.0089
  Prefactor  = 23.3898
  norm       = 18.8749
  norm       = 0.0001
  Prefactor  = 5.71482
  norm       = 5.31672
  Normalizat = 1.13722
  Prefactor  = 0.975994
 **********
 **   18 **HESSE 
 **********

 FCN=   9585.682     FROM HESSE     STATUS=OK           293 CALLS     2289 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7057        1.6104        .92129E-04   -1.5379    
   2  Prefactor     .10000E-03    1.6367        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.0605        5.0672        .15097E-03   -1.5176    
   4  Prefactor     9.5617        26.107        .12960E-03   -1.5089    
   5  Prefactor     1.9812        3.8717        .25928E-03   -1.5426    
   6  Prefactor     .10000E-03    18.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4419        5.4827        .15813E-03   -1.5200    
  10  Prefactor     .10001E-03    23.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.021        8.1673        .60342E-03   -1.5044    
  12  Prefactor     .10000E-03    24.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.009        10.950        .12666E-03   -1.5075    
  14  Prefactor     23.390        29.864        .82824E-04   -1.4740    
  15  norm          18.875        14.015        .92193E-04   -1.4839    
  16  norm          .10000E-03    4.5400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7148        2.9749        .11602E-03   -1.5230    
  18  norm          5.3167        3.0250        .12496E-03   -1.5247    
  19  Normalizat    1.1372        .25360        .36006E-03   -.88566    
  20  Prefactor     .97599        .12161        .19332E-03   -.93534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78308e-10
Minuit parameter uncertainties:
  1  1.61039
  2  1.06092e-05
  3  5.06755
  4  26.1379
  5  3.87222
  6  0.000171466
  7  0.00013557
  8  1.63672e-05
  9  5.48308
  10  0.000708303
  11  8.16815
  12  0.000251896
  13  10.9521
  14  29.8833
  15  14.0176
  16  1.87551e-05
  17  2.97502
  18  3.02506
  19  0.253873
  20  0.121643
Done.

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

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  1.887e+01  1.402e+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:  9.760e-01  1.216e-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.137e+00  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 277.400 48.765
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 5.30e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.72e-05

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

Saving results to:
/scratch/kocevski/952141/likelihoodResults_426988801_427248001_4FGL_J1829.5+4845_daily_bin724.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) = 9584.88903771
delta logL = 0.793175210567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9584.8675703
delta logL = 0.814642620184

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.640       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0920       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99536       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=   9584.868     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      262 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.647        157.87        .25319E-02    .11041E-03
   2  alpha         3.0926        4.0460        .37089        .66438E-04
   3  Normalizat    1.0698        .84756E-01    .83480E-01    .11565E-03
   4  Prefactor     .99529        .42929E-01    .46209E-01    .16443E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6472
  alpha      = 3.09257
  Normalizat = 1.06976
  Prefactor  = 0.995287
 **********
 **   18 **HESSE 
 **********

 FCN=   9584.868     FROM HESSE     STATUS=OK            31 CALLS      293 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.647        13.258        .10128E-03   -1.4917    
   2  alpha         3.0926        .64678        .14722E-01    .23930    
   3  Normalizat    1.0698        .24805        .36961E-03   -.90729    
   4  Prefactor     .99529        .12194        .19158E-03   -.92887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05607e-09
Minuit parameter uncertainties:
  1  13.2602
  2  0.654677
  3  0.248324
  4  0.121971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952141': 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) = 9584.86756821
delta logL = 0.814644713226

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  1.565e+01  1.326e+01  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  3.093e+00  6.547e-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.953e-01  1.220e-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.070e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 277.400 48.765
Photon Index (Free Index): 3.09 +/- 0.65
Photon Flux (Free Index): 1.33e-07 +/- 7.88e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.51e-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/952141/cmap_HighResolution_426988801_427248001_4FGL_J1829.5+4845_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-05', comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='2.60e-05', photon_flux_error='5.30e-08', dlogl='8.15e-01', energy_flux='2.32e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-20 13:56:40.494340', photon_index_error2='0.65', photon_index2='3.09', ts='2.71', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='1.51e-05', EG='1.14', time_epoch_completed='1632171400.49', return_code='0', job_id='952141', GAL2='1.00', EG2='1.07', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='7.88e-08', ts2='4.46', photon_index='2.36' WHERE bin_id='724' AND source_name='4FGL J1829.5+4845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:56:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 952141: <4FGL_J1829.5+4845_daily_bin724> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.5+4845_daily_bin724 277.4 48.7646 426988801 427248001 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 :                                   857.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            975 sec.

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

