/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 72 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 = 7388
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1829.2-5813_daily_bin1391
RA = 277.311, Dec = -58.2323
tmin = 599875201, tmax = 600134401
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='943273', job_status='RUN', time_executed='2021-09-20 13:12:25.113170', time_epoch_executed='1632168745.11' WHERE source_name='4FGL J1829.2-5813' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943273/ft1_4FGL_J1829.2-5813_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943273/ft1_4FGL_J1829.2-5813_daily_bin1391.fits outfile=/scratch/kocevski/943273/ft1_filteredMKT_4FGL_J1829.2-5813_daily_bin1391.fits ra=277.311 dec=-58.2323 rad=12.0 tmin=599875201.0 tmax=600134401.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 2.40
user 2.22
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.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/943273/ft1_filteredMKT_4FGL_J1829.2-5813_daily_bin1391.fits evtable="EVENTS" outfile="/scratch/kocevski/943273/ft1_filtered_4FGL_J1829.2-5813_daily_bin1391.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943273/ft1_filtered_4FGL_J1829.2-5813_daily_bin1391.fits" evtable="EVENTS" scfile=/scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits sctable="SC_DATA" outfile=/scratch/kocevski/943273/ltcube_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.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/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits
.....................!
real 12.65
user 12.33
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943273/ft1_filtered_4FGL_J1829.2-5813_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/943273/ltcube_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.fits outfile=/scratch/kocevski/943273/expmap_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.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/943273/ltcube_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.fits
.....................!
real 190.55
user 185.07
sys 5.17

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 FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Added 318 point sources and 11 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.2-5813 @ 277.311 -58.2323

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/943273/ft1_filtered_4FGL_J1829.2-5813_daily_bin1391.fits scfile=/scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits outfile=/scratch/kocevski/943273/cmap_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.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.311 yref=-58.2323 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943273/ft1_filtered_4FGL_J1829.2-5813_daily_bin1391.fits scfile=/scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits outfile=/scratch/kocevski/943273/cmap_HighResolution_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.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.311 yref=-58.2323 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/943273/ft1_filtered_4FGL_J1829.2-5813_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/943273/Model_4FGL_J1829.2-5813_daily_bin1391.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 FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
Working on...
/scratch/kocevski/943273/ft1_filtered_4FGL_J1829.2-5813_daily_bin1391.fits......................!
real 93.10
user 91.81
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/943273/ft1_filtered_4FGL_J1829.2-5813_daily_bin1391.fits', '/scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits', expMap='/scratch/kocevski/943273/expmap_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.fits', expCube='/scratch/kocevski/943273/ltcube_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/943273/Model_4FGL_J1829.2-5813_daily_bin1391.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1829.2-5813'

4FGL J1829.2-5813
   Spectrum: LogParabola
806         norm:  1.490e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
807        alpha:  2.500e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
808         beta:  1.293e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
809           Eb:  6.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/943273/ft1_filtered_4FGL_J1829.2-5813_daily_bin1391.fits
Spacecraft file(s): /scratch/kocevski/943273/ft2_4FGL_J1829.2-5813_daily_bin1391.fits
Exposure map: /scratch/kocevski/943273/expmap_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.fits
Exposure cube: /scratch/kocevski/943273/ltcube_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/943273/Model_4FGL_J1829.2-5813_daily_bin1391.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) = 2300.26037095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9023       1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35961E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .60655       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11396E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    163.87       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    20.139       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5797       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .23909       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1574       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1159E+06   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2300.199     FROM MIGRAD    STATUS=CONVERGED   1107 CALLS     4165 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9029        16.070        .14264E-03   -.75718E-05
   2  norm         10000.0        372.49        .18142E-02** at limit **
   3  Prefactor    10000.0        921.11        .18142E-02** at limit **
   4  Prefactor     .10000E-03    13.079        .16933E-02** at limit **
   5  Prefactor     .10000E-03    92.009        .18142E-02** at limit **
   6  norm          .10000E-03    160.01        .18142E-02** at limit **
   7  Prefactor     .10000E-03    35.130        .18142E-02** at limit **
   8  Prefactor     .10000E-03    209.99        .18142E-02** at limit **
   9  norm          .10000E-03    142.51        .18142E-02** at limit **
  10  Prefactor    10000.0        973.88        .18142E-02** at limit **
  11  Prefactor     .10000E-03    73.188        .18142E-02** at limit **
  12  Prefactor     26.736        30.658        .77486E-04   -.30151E-04
  13  Prefactor     .10000E-03    188.71        .18142E-02** at limit **
  14  norm          .10000E-03    20.313        .18142E-02** at limit **
  15  norm          .10049E-03    141.62        .37788E-02** at limit **
  16  norm          .60596        1.7979        .11567E-02    .54187E-03
  17  Prefactor     .10000E-03    377.04        .18142E-02** at limit **
  18  Prefactor     163.98        285.78        .15753E-03   -.15112E-04
  19  Prefactor     .10000E-03    164.75        .18142E-02** at limit **
  20  Prefactor     .10000E-03    119.00        .18142E-02** at limit **
  21  norm          20.142        15.298        .89250E-04   -.69613E-04
  22  norm          2.5804        2.8644        .79031E-04   -.75522E-04
  23  Normalizat    .23890        .65308        .93578E-03   -.19238E-04
  24  Prefactor     1.1575        .23126        .15565E-03   -.14236E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.9029
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 26.736
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100486
  norm       = 0.605959
  Prefactor  = 0.0001
  Prefactor  = 163.977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1416
  norm       = 2.58041
  Normalizat = 0.238898
  Prefactor  = 1.15748
 **********
 **   18 **HESSE 
 **********

 FCN=   2300.199     FROM HESSE     STATUS=OK           375 CALLS     4540 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9029        16.069        .57055E-05   -1.5146    
   2  norm         10000.0        372.48        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        921.10        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.079        .33866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    92.010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    160.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    209.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    142.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        973.87        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    73.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.736        30.654        .30994E-05   -1.4673    
  13  Prefactor     .10000E-03    188.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    20.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10049E-03    146.48        .15115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .60596        1.7958        .46267E-04   -1.5552    
  17  Prefactor     .10000E-03    377.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     163.98        285.67        .31506E-04   -1.3140    
  19  Prefactor     .10000E-03    164.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    119.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          20.142        15.297        .35700E-05   -1.4810    
  22  norm          2.5804        2.8635        .31612E-05   -1.5387    
  23  Normalizat    .23890        .65084        .37431E-04   -1.2669    
  24  Prefactor     1.1575        .23049        .31131E-04   -.87650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47918e-09
Minuit parameter uncertainties:
  1  16.0778
  2  0.00135617
  3  0.00322803
  4  1.19071e-07
  5  1.10012e-05
  6  0.00020292
  7  1.12747e-06
  8  5.2328e-05
  9  7.58364e-05
  10  0.00392291
  11  1.09517e-05
  12  30.6716
  13  0.000201112
  14  1.25258e-06
  15  0.016916
  16  1.79594
  17  0.000401317
  18  288.132
  19  0.000403178
  20  0.000138984
  21  15.2996
  22  2.86366
  23  0.673386
  24  0.230687
Done.

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

Extracting fit parameters...

4FGL J1829.2-5813
   Spectrum: LogParabola
806         norm:  6.060e-01  1.796e+00  1.000e-04  1.000e+04 ( 1.000e-11)
807        alpha:  2.500e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
808         beta:  1.293e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
809           Eb:  6.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1141    Prefactor:  1.157e+00  2.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1142        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1143        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1117   Normalization:  2.389e-01  6.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 277.311 -58.232
Photon Flux Upper Limit: 3.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/943273/likelihoodResults_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.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) = 2300.19861672
delta logL = 0.000789876701219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2300.19847487
delta logL = 0.000931727951411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64392       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4242       1.0000          .0000       5.0000    
     3 'Normalizat'    .24118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1568       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1159E+06   .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=   2300.198     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      273 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64033        2.1299        .11880E-02    .75469E-03
   2  alpha         2.4192        1.7696        .28879E-01    .35654E-04
   3  Normalizat    .23993        .63020        .93403E-03    .17178E-03
   4  Prefactor     1.1572        .22717        .15567E-03    .82668E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.640334
  alpha      = 2.4192
  Normalizat = 0.239931
  Prefactor  = 1.15719
 **********
 **   18 **HESSE 
 **********

 FCN=   2300.198     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64033        1.9983        .47520E-04   -1.5548    
   2  alpha         2.4192        1.6833        .11552E-02   -.32326E-01
   3  Normalizat    .23993        .62820        .37361E-04   -1.2662    
   4  Prefactor     1.1572        .22636        .31134E-04   -.87659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76146e-09
Minuit parameter uncertainties:
  1  1.99848
  2  1.84694
  3  0.648244
  4  0.226549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943273': 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) = 2300.19846472
delta logL = 0.000941874238833

Extracting fit parameters...

4FGL J1829.2-5813
   Spectrum: LogParabola
806         norm:  6.403e-01  1.998e+00  1.000e-04  1.000e+04 ( 1.000e-11)
807        alpha:  2.419e+00  1.847e+00  0.000e+00  5.000e+00 ( 1.000e+00)
808         beta:  1.293e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
809           Eb:  6.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1141    Prefactor:  1.157e+00  2.265e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1142        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1143        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1117   Normalization:  2.399e-01  6.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 277.311 -58.232

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/943273/cmap_HighResolution_599875201_600134401_4FGL_J1829.2-5813_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-05', job_status='DONE', photon_flux_upper_limit='3.26e-07', time_completed='2021-09-20 13:25:30.554723', job_id='943273', GAL2='1.16', fit_tolerance='1e-08', EG2='0.24', EG='0.24', time_epoch_completed='1632169530.55', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.42e-04', ts2='0.15', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1391' AND source_name='4FGL J1829.2-5813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:25:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 943273: <4FGL_J1829.2-5813_daily_bin1391> in cluster <slac> Done

Job <4FGL_J1829.2-5813_daily_bin1391> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 20 13:10:22 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 13:11:02 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:11:02 2021
Terminated at Mon Sep 20 13:25:30 2021
Results reported at Mon Sep 20 13:25:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.2-5813_daily_bin1391 277.311 -58.2323 599875201 600134401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1829.2-5813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.24 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             347.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            908 sec.

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

