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


Performing analysis on: 4FGL_J1834.7-5858_daily_bin1444
RA = 278.687, Dec = -58.9818
tmin = 613612801, tmax = 613872001
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='87245', job_status='RUN', time_executed='2021-09-20 22:17:24.068576', time_epoch_executed='1632201444.07' WHERE source_name='4FGL J1834.7-5858' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87245

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87245/ft1_4FGL_J1834.7-5858_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87245/ft1_4FGL_J1834.7-5858_daily_bin1444.fits outfile=/scratch/kocevski/87245/ft1_filteredMKT_4FGL_J1834.7-5858_daily_bin1444.fits ra=278.687 dec=-58.9818 rad=12.0 tmin=613612801.0 tmax=613872001.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.53
user 2.32
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.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/87245/ft1_filteredMKT_4FGL_J1834.7-5858_daily_bin1444.fits evtable="EVENTS" outfile="/scratch/kocevski/87245/ft1_filtered_4FGL_J1834.7-5858_daily_bin1444.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87245/ft1_filtered_4FGL_J1834.7-5858_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/87245/ltcube_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.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/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits
.....................!
real 15.21
user 14.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87245/ft1_filtered_4FGL_J1834.7-5858_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/87245/ltcube_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.fits outfile=/scratch/kocevski/87245/expmap_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.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/87245/ltcube_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.fits
.....................!
real 191.77
user 185.96
sys 5.35

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 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 FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Added 312 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 J1834.7-5858 @ 278.687 -58.9818

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/87245/ft1_filtered_4FGL_J1834.7-5858_daily_bin1444.fits scfile=/scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits outfile=/scratch/kocevski/87245/cmap_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.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=278.687 yref=-58.9818 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87245/ft1_filtered_4FGL_J1834.7-5858_daily_bin1444.fits scfile=/scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits outfile=/scratch/kocevski/87245/cmap_HighResolution_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.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=278.687 yref=-58.9818 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87245/ft1_filtered_4FGL_J1834.7-5858_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87245/Model_4FGL_J1834.7-5858_daily_bin1444.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/87245/ft1_filtered_4FGL_J1834.7-5858_daily_bin1444.fits.....................!
real 129.48
user 127.37
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87245/ft1_filtered_4FGL_J1834.7-5858_daily_bin1444.fits', '/scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits', expMap='/scratch/kocevski/87245/expmap_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.fits', expCube='/scratch/kocevski/87245/ltcube_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87245/Model_4FGL_J1834.7-5858_daily_bin1444.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1834.7-5858'

4FGL J1834.7-5858
   Spectrum: PowerLaw
788    Prefactor:  8.724e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
789        Index:  2.394e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
790        Scale:  1.666e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/87245/ft1_filtered_4FGL_J1834.7-5858_daily_bin1444.fits
Spacecraft file(s): /scratch/kocevski/87245/ft2_4FGL_J1834.7-5858_daily_bin1444.fits
Exposure map: /scratch/kocevski/87245/expmap_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.fits
Exposure cube: /scratch/kocevski/87245/ltcube_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87245/Model_4FGL_J1834.7-5858_daily_bin1444.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) = 3547.6131859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11346E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9343       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62630E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.237       1.0000         .10000E-03   10000.    
    12 'norm      '    .10286E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .21832E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2743       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    158.37       1.0000         .10000E-03   10000.    
    19 'norm      '    51.185       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.210       1.0000         .10000E-03   10000.    
    21 'norm      '    4.1616       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3116       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1140E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3547.608     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2512 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8209        .85003E-07** at limit **
   2  Prefactor     .10000E-03    27.706        .22860E-06** at limit **
   3  Prefactor     .10000E-03    44.832       -.10904E-06** at limit **
   4  norm          .10000E-03    96.880       -.48520E-05** at limit **
   5  Prefactor     .10000E-03    98.455       -.38926E-05** at limit **
   6  Prefactor     .10000E-03    225.14       -.41094E-05** at limit **
   7  norm          3.7423        577.18       -.40993E-04   -.27301E-04
   8  Prefactor     .10001E-03    320.71       -.14461E-04** at limit **
   9  Prefactor     .10000E-03    19.833        .31308E-06** at limit **
  10  Prefactor     .10000E-03    18.935        .29215E-06** at limit **
  11  Prefactor     40.129        501.41        .21061E-04    .42455E-04
  12  norm          .10000E-03    14.793       -.25348E-05** at limit **
  13  norm          .10032E-03    16.634       -.31301E-05** at limit **
  14  norm          3.2736        2.8598        .13936E-05    .10564E-02
  15  Prefactor     .10000E-03    227.08       -.85114E-06** at limit **
  16  Prefactor     .10000E-03    149.96        .10645E-05** at limit **
  17  Prefactor     .10000E-03    100.46       -.31641E-06** at limit **
  18  Prefactor     158.33        214.37       -.27380E-05    .15218E-05
  19  norm          51.184        18.989       -.72251E-07    .10000E-04
  20  Prefactor     14.209        18.498        .11510E-05    .65707E-04
  21  norm          4.1619        2.9012        .30937E-06   -.10673E-04
  22  Normalizat    1.3108        .57231       -.20511E-04    .24541E-03
  23  Prefactor     1.0088        .18657        .80748E-05    .15868E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 3.74231
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.1286
  norm       = 0.0001
  norm       = 0.000100319
  norm       = 3.2736
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 158.335
  norm       = 51.184
  Prefactor  = 14.2094
  norm       = 4.16195
  Normalizat = 1.3108
  Prefactor  = 1.00876
 **********
 **   18 **HESSE 
 **********

 FCN=   3547.608     FROM HESSE     STATUS=OK           366 CALLS     2878 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8250        .15193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    97.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    98.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    225.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7423        605.49        .20338E-02   -1.5321    
   8  Prefactor     .10001E-03    322.83        .21041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.129        479.40        .31596E-03   -1.4440    
  12  norm          .10000E-03    14.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10032E-03    222.55        .44108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2736        2.8980        .44987E-03   -1.5346    
  15  Prefactor     .10000E-03    227.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    150.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    100.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     158.33        214.40        .16020E-03   -1.3185    
  19  norm          51.184        18.999        .56056E-04   -1.4276    
  20  Prefactor     14.209        18.494        .53126E-03   -1.4954    
  21  norm          4.1619        2.9085        .77246E-04   -1.5300    
  22  Normalizat    1.3108        .59990        .47053E-03   -.83244    
  23  Prefactor     1.0088        .19617        .17375E-03   -.92438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47565e-09
Minuit parameter uncertainties:
  1  1.6336e-06
  2  3.23887e-05
  3  1.11812e-05
  4  0.000777596
  5  0.000733465
  6  0.00071914
  7  96.2088
  8  0.00320782
  9  1.65032e-05
  10  5.98791e-06
  11  280.249
  12  0.000147488
  13  0.0169266
  14  2.89812
  15  0.000801513
  16  0.00126084
  17  0.000232074
  18  215.465
  19  19.0017
  20  18.5017
  21  2.9086
  22  0.603132
  23  0.196313
Done.

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

Extracting fit parameters...

4FGL J1834.7-5858
   Spectrum: PowerLaw
788    Prefactor:  1.000e-04  8.015e-04  1.000e-04  1.000e+04 ( 1.000e-14)
789        Index:  2.394e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
790        Scale:  1.666e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1122    Prefactor:  1.009e+00  1.963e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1123        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1124        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1098   Normalization:  1.311e+00  6.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 278.687 -58.982
Photon Flux Upper Limit: 2.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87245/likelihoodResults_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.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): 102
logL (Free Index) = 3547.6083738
delta logL = -2.08252113225e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3547.60835302
delta logL = -4.13774614572e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11532E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3668       1.0000          .0000       10.000    
     3 'Normalizat'    1.3108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0088       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1140E+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=   3547.608     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      268 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8812.5        .18142E-02** at limit **
   2  Index         2.3872        5.3916        .50000       -.10090E-05
   3  Normalizat    1.3108        .28929        .47055E-03   -.51232E-04
   4  Prefactor     1.0088        .96319E-01    .17374E-03    .24624E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.38716
  Normalizat = 1.31077
  Prefactor  = 1.00877
 **********
 **   18 **HESSE 
 **********

 FCN=   3547.608     FROM HESSE     STATUS=OK            29 CALLS      297 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    225.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3872        6.1929        .50000       -.54986    
   3  Normalizat    1.3108        .55481        .18822E-04   -.83245    
   4  Prefactor     1.0088        .18526        .34748E-04   -.92438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36576e-10
Minuit parameter uncertainties:
  1  0.00142698
  2  4.44862
  3  0.557362
  4  0.185382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87245': 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) = 3547.60835298
delta logL = -1.42335920827e-09

Extracting fit parameters...

4FGL J1834.7-5858
   Spectrum: PowerLaw
788    Prefactor:  1.000e-04  1.427e-03  1.000e-04  1.000e+04 ( 1.000e-14)
789        Index:  2.387e+00  4.449e+00  0.000e+00  1.000e+01 (-1.000e+00)
790        Scale:  1.666e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1122    Prefactor:  1.009e+00  1.854e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1123        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1124        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1098   Normalization:  1.311e+00  5.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 278.687 -58.982

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/87245/cmap_HighResolution_613612801_613872001_4FGL_J1834.7-5858_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-02', job_status='DONE', photon_flux_upper_limit='2.83e-07', time_completed='2021-09-20 22:30:51.558869', job_id='87245', GAL2='1.01', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632202251.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-1.42e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1444' AND source_name='4FGL J1834.7-5858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 22:30:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 87245: <4FGL_J1834.7-5858_daily_bin1444> in cluster <slac> Done

Job <4FGL_J1834.7-5858_daily_bin1444> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 20 22:15:19 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 22:15:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 22:15:55 2021
Terminated at Mon Sep 20 22:30:52 2021
Results reported at Mon Sep 20 22:30:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1834.7-5858_daily_bin1444 278.687 -58.9818 613612801 613872001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1834.7-5858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   802.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             336.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            933 sec.

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

